HTML Form and thank you on the same location of the page
On a Web page, I have a form requesting for a demo.
When one submits the form, I need to displays Thanks in the same location of the webpage without refreshing and send a e-mail to me.
I hope I have made myself clear.
The page is a HTML page and not php. There are several other elements on the page, among them is this HTML form with just two fields Name and E-mail. When on submits it, I need to say thanks at the same location of the form without refreshing the page.
Yes, that's usually the case. I get frustrated by clients who want things that aren't practical, or that are purely to satisfy their vanity at the expense of usability. Anyway, sorry for the rant! Having other elements on the page is not a problem as far as PHP goes. Anyhow, a combination of JS/Ajax and PHP might be the best solution, but I'm not qualified to advise on that. Hopefully someone else will step in now.