Skip to main content
Known Participant
August 7, 2009
Question

Auto reset of FormMail form (PHP)

  • August 7, 2009
  • 1 reply
  • 1486 views

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

This topic has been closed for replies.

1 reply

helpvid
Participant
August 7, 2009

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

tompen01Author
Known Participant
August 7, 2009

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

helpvid
Participant
August 7, 2009

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