html forms/submit button

html forms/submit button

Posted by: Tiapan1979
Posted on: 2009-01-20 02:11:00

Hi,
i have a dreamhost account...
I have made a enquiry/feedback form with dreamweaver, and i am having trouble getting the submit button to send the information from the form to my email.Does anyone know what i need to do, so i can get the submit button to send the information to my email.
Here is the form i have created in dreamweaver.

<form action="Enquiryform" method="post" enctype="multipart/form-data" name="Enquiryform" id="Enquiryform">
<table width="386" border="0" align="left">
<tr>
<td width="116"><span class="style2">Name:</span></td>
<td width="291"><input type="text" name="Name" id="Name" /></td>
</tr>
<tr>
<td width="116" class="style2">Date of party:</td>
<td width="291"><label for="Dateofparty"></label>
<input type="text" name="Dateofparty" id="Dateofparty" /></td>
</tr>
<tr>
<td width="116" class="style2">Event:</td>
<td width="291"><input type="text" name="Event" id="Event" /></td>
</tr>
<tr>
<td width="116" class="style2">Location:</td>
<td width="291"><input type="text" name="Location" id="Location" /></td>
</tr>
<tr>
<td width="116" class="style2">Start time:</td>
<td width="291"><input type="text" name="Starttime" id="Starttime" /></td>
</tr>
<tr>
<td width="116" class="style2">Finish time:</td>
<td width="291"><input type="text" name="Finishtime" id="Finishtime" /></td>
</tr>
<tr>
<td width="116" class="style2">Phone number:</td>
<td width="291"><input type="text" name="Phoneno" id="Phoneno" /></td>
</tr>
<tr>
<td width="116" class="style2">Email:</td>
<td width="291"><input type="text" name="Email" id="Email" /></td>
</tr>
<tr>
<td width="116" class="style2">Comments:</td>
<td width="291"><textarea name="Comments" id="Comments" cols="45" rows="5"></textarea></td>
</tr>
<tr>
<td width="116"><input type="submit" name="Submit" id="Submit" value="Submit" /></td>
<td width="291"><input type="reset" name="Reset" id="Reset" value="Reset" /></td>
</tr>
</table>
</form>




Edited by Tiapan1979 on 01/20/09 02:20 AM (server time).

Re: html forms/submit button

Posted by: Tiapan1979
Posted on: 2009-01-20 05:39:00

ok i have figured it out.
but i have another problem!!! when i hit submit after filling in my form i am getting blank emails come through with no information come through.

Re: html forms/submit button

Posted by: sXi
Posted on: 2009-01-20 07:31:00

Check this out: http://wiki.dreamhost.com/Formmail

I reckon that might suit your needs wink




How To Install PHP.INI / ionCube on DreamHost

Re: html forms/submit button

Posted by: Tiapan1979
Posted on: 2009-01-20 08:31:00

Thanks for that.....
im just wondering could there be a problem with the .php file i have to send the form to my email?

script for sending form to email:

<?php
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;

mail( "youremail.com", "Enquiry",
$message, "From: $email" );
header( "Location: http://www.armouredmonkey.com" );
?>

Tags: html formsemail