Question : PHP redirection

Hi,

I have a form used by sereval pages.

What I want is after the form is filled and saved to redirect the user to the page he was previously.

now it is redirect to a specific main page like this

  redirect('index.php');

save and cancel button code
 
    <input class="art-button" type=submit name=btn_submit value="Save">
 
  <input class="art-button" type=button name=btn_cancel value="Cancel" onclick="history.go(-1)">

I'm wondering how to make history.go(-1) when saving the information

Thanks

Answer : PHP redirection

Random Solutions  
 
programming4us programming4us