Jump to content

submit form to email without using email client


business angel
 Share

Recommended Posts

Hi, new to this forum so hope someone can help. I've created a form in dreamweaver cs3 and want the submit button to send the information to an email address without using an email client. I have done this before, but can remember how! Have looked around on the web, but am confused as to which bits of script go where. the following is the code for the form: <form id="form1" name="form1" method="post" action=""> <table width="100%" border="0"> <tr> <td width="28%"><p>Name *</p></td> <td width="72%"><span id="sprytextfield3"> <input type="text" name="name" id="name" /> <span class="textfieldRequiredMsg">A value is required.</span></span></td> </tr> <tr> <td><p>Surname *</p></td> <td><span id="sprytextfield4"> <input type="text" name="surname" id="surname" /> <span class="textfieldRequiredMsg">A value is required.</span></span></td> </tr> <tr> <td><p>Address</p></td> <td><textarea name="address" id="address" cols="45" rows="5"></textarea></td> </tr> <tr> <td><p>Postcode *</p></td> <td><span id="sprytextfield1"> <input type="text" name="postcode" id="postcode" /> <span class="textfieldRequiredMsg">A value is required.</span></span></td> </tr> <tr> <td><p>Email address *</p></td> <td><span id="sprytextfield2"> <input type="text" name="email " id="email " /> <span class="textfieldRequiredMsg">A value is required.</span></span></td> </tr> <tr> <td><p>Telephone</p></td> <td><input type="text" name="telephone" id="telephone" /></td> </tr> <tr> <td><p>Mobile No</p></td> <td><input type="text" name="mobile" id="mobile" /></td> </tr> <tr> <td><p>Tell us what you're looking for</p></td> <td><textarea name="details" id="details" cols="45" rows="6"></textarea> Submit <input type="submit" name="submit" id="submit" value="Submit" /> Reset Form <input type="reset" name="reset" id="reset" value="Reset" /></td> </tr> </table> </form>is there a very simple solution to this please?ta muchly in anticipation...

Link to comment
Share on other sites

where's the PHP? if you look in the w3schools PHP tutorials, there are sections detailing how to use the mail() with forms.

Link to comment
Share on other sites

where's the PHP? if you look in the w3schools PHP tutorials, there are sections detailing how to use the mail() with forms.
Is there any way to configure the submit button without recreating the form in php - am not at all familiar with it and need to get it done. Ideally it would be good if it submits without using an email clientthanks
Link to comment
Share on other sites

Is there any way to configure the submit button without recreating the form in php - am not at all familiar with it and need to get it done. Ideally it would be good if it submits without using an email clientthanks
did you read the tutorial? :)you don't recreate the form. you submit the form to a server script that you write, that takes the form values and constructs a message to be sent via mail().
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...