How to submit a form using Dreamweaver.....

Soldato
Joined
9 May 2003
Posts
3,062
Location
Midlands
Hi all, i've created a form in Dreamweaver complete with all my questions and a clear button, all of which are functional. However, how do I get the "submit" button to actually e-mail me the contents of the form to my chosen address?

Anyone got any ideas :)
 
Permabanned
Joined
16 Dec 2002
Posts
10,237
are you using php?
Code:
if(isset($_POST['submit'])){
      $email = "your email address";
       $header = "subject line";
       $body = "$_POST[q] <br/> $_POST[a]";
      $from = "email of the person who filled in the data";
  mail($email, $header,$body,);

}
 
Last edited by a moderator:
Soldato
OP
Joined
9 May 2003
Posts
3,062
Location
Midlands
Freak_boy said:
are you using php?
Code:
if(isset($_POST['submit'])){
      $email = "your email address";
       $header = "subject line";
       $body = "$_POST[q] <br/> $_POST[a]";
      $from = "email of the person who filled in the data";
  mail($email, $header,$body, 'From:[email protected]');

}


Nope, just plain HTML...........though one of you guys have contacted me on MSN and being really helpful atm :) So hopefully it will be sorted soon \:D/

Thanks in advance whoever you are lol :)
 
Last edited:
Back
Top Bottom