javascript - php page redirect after operation -


i have page (index.php) has php grid subpages(<<1,2,3,4>>). operation on page takes index.php. using $_get['prd_p'] or $_request['prd_p'] gives page number. want users stay on page after operation, means have use redirects.

<form name="frmsearchme" action="<?php echo $page_name; ?>" method="post"> <tr>  <input class='form_button' type='submit' name='btnsubmit' value=' save ' onclick='return checkerrors();' /></td>  </tr> //php codes here </form> 

yes, have redirect same page after performing operation.

header("location:url&".$_get['prd_p']); die(); 

you should use die() or exit() after redirect statment.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -