Copy link to clipboard
Copied
I have sites using PHP FormMail for a DWCS4-generated form. Works very well. However, one issue. I'd like for the form to reset automatically after the "submit" button has been clicked by the users on my site. Any way to set this up in DWCS4, or does this have to be done with PHP scripting?
Appreciate any help on this.
Regards,
Tom
Copy link to clipboard
Copied
yes you need to instruct the PHP document to return to the site once the sent message has appeared. I done this with the following code.
<meta http-equiv="refresh" content="3;URL=http://YOURWEBADDRESS/contact.html">
This gives the instruction to return to the contact page after 3 sec.
This is what I have at my own website http://www.helpvid.net, there is also a video tutorial on this at my site if you need further guidance
mark
Copy link to clipboard
Copied
Many thanks! I'll give it a try.
Presume this code needs to go into my php script? If not, where's the best place to insert it. Is yes, does it matter where in the php script it goes?
Tom
Copy link to clipboard
Copied
After my script I have a div, this div is the your Email has been sent message, so i placed that code after the <title>. But make sure its after the EOD at the bottom of your script. I have a tutorial on this at this link. http://www.helpvid.net/phpScript
Copy link to clipboard
Copied
Thanks.