Welcome to WebmasterWorld Guest from 188.8.131.52 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
redirecting a user to main page after Submit button is clicked tweety msg:4561649 9:39 am on Apr 5, 2013 (gmt 0) Hi, I am trying to redirect to the main page when the user clicks save button. My main page is main.php contains Questions. For answering the Questions i give link to the another page for answering.After Saving the answer sheet, the form submits and not redirects to the main.php. please tell me how to do that
phranque msg:4561661 11:14 am on Apr 5, 2013 (gmt 0)
welcome to WebmasterWorld, tweety! after processing the form, your HTTP Response should start with a 301 status code and a Location: header referring to the main.php url g1smd msg:4561680 12:30 pm on Apr 5, 2013 (gmt 0)
You MUST process the submitted form data before returning the redirect response as POST parameters are stripped in a redirect.