homepage Welcome to WebmasterWorld Guest from 54.226.252.142
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved