kvarnerexpress 0 Report post Posted June 23, 2005 I've created a form, nothing special, that uses a php script as a form action to input data into mysql. Nothing special at all about this scenario. One thing I'd like to do is have the php script redirect the user back to the html page that has the form the user just completed. I don't want to have to hard code the url into the header function because I use this php script with a bunch of other pages. Does PHP store the value of this page into some variable that the php script can use? Thanks.kvarnerexpress Share this post Link to post Share on other sites
hype 0 Report post Posted June 24, 2005 Simply use the echo tag after the submit of forms and the put the url redirection codes to redirect it back... you can put different echos on different form submission.. Share this post Link to post Share on other sites