Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Auto reset of FormMail form (PHP)

New Here ,
Aug 07, 2009 Aug 07, 2009

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

TOPICS
Server side applications
1.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 07, 2009 Aug 07, 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 07, 2009 Aug 07, 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 07, 2009 Aug 07, 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 07, 2009 Aug 07, 2009
LATEST

Thanks.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines