This is my site that I'm working on the contact page.
I'm using formmail.php for the contact form (http://www.tectite.com/)
When the user submits the form I want it to say something like "Thank you, your message has been sent." But I want this text to be displayed on the page where the form is - NOT open a separate URL.
There is already a way to redirect to a separate page by using:
<input type="hidden" name="good_url" value="http://yoursite.com/thanks.htm" />
However since my site is a single page scrolling site, I want to avoid navigating away.
You can simply use ajax functionality to do it