Stop What? What do you want to happen when they click submit? Nothing? They go to a different page?
I think TheDoc got what you were trying to say, and his code will redirect the visitor to any page after the mail is sent, but if not, you’ll need to clarify what you want to happen when they click submit
O.k sorry for no being clear – Im using wordpress and in the sidebar.php file i have a small form that sends me an email – When the person clicks the submit button they are taken to the php file that send me the email – but i want them to stay on the page that they were on.
Will the code given to me by ‘TheDoc’ redirect the person back to the page they came from in wordpress, ie – the form will be on everypage on the site, not just one, so will the code return them to the page they were last on or one that i have to specify?
Yes, The code from the Doc will send them back to whatever link you specify. You may be able to us the $_SERVER variable for referrer to send them back to the page they were on. I do believe that that code will be as good as you can get from a forum.
Problem: It will look like they haven’t submitted the form; leading most people to fill in and submit the form again… ending in utter confusion.
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.
*May or may not contain any actual "CSS" or "Tricks".