Jump to content
xisto Community
kvarnerexpress

Stored Or Global Variable?

Recommended Posts

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.