sumu
12-20-2010, 01:59 PM
Dear Friends,
Hi, recently I'm going to make a website. As a novice designer I've set up the site, but one thing I could not be able to fix that is my contact form. So, I need your help to make php codes for my contact form. The html structure is given below:
==========================
<html>
<head><title>Contact Form</title>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0">
<tr align="center">
<td valign="top" align="left" class="support"><form name="Contact_Form" method="post"
action="form.php" enctype="multipart/form-data">
<fieldset class="fieldbox">
<legend>General Information</legend>
<table width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td width="30%" align="left" valign="top" class="formtext">Full Name: *</td>
<td width="70%"><input name="fullname" type="text" size="25" value=""/></td>
</tr>
<tr>
<td align="left" valign="top" class="formtext">Email: *</td>
<td><input name="email" type="text" size="25" value=""/></td>
</tr>
<tr>
<td align="left" valign="top" class="formtext">City: *</td>
<td><input name="cityname" type="text" size="25" value=""/></td>
</tr>
<tr>
<td align="left" valign="top" class="formtext">Country: *</td>
<td><input name="countryname" type="text" size="25" value=""/></td>
</tr>
</table>
</fieldset>
<fieldset class="fieldbox">
<legend>Department</legend>
<table width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td width="30%" align="left" valign="top" class="formtext">Where to send: *</td>
<td width="70%">
<select name="Department">
<option>Affiliate</option>
<option>Feedback</option>
<option>Services</option>
<option>Support</option>
</select>
</td>
</tr>
</table>
</fieldset>
<fieldset class="fieldbox">
<legend>Message Details</legend>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td align="left" valign="top" class="formtext" width="30%">Subject: *</td>
<td width="70%"><input name="subject" type="text" size="25" value=""
style="WIDTH:98%"/></td>
</tr>
<tr>
<td colspan="2"><textarea name="message" rows="10" cols="30"
style="WIDTH:98%;"></textarea></td>
</tr>
</table>
</fieldset>
<fieldset class="fieldbox">
<legend>Verify Submission</legend>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td><span class="smalltext"><img src="CaptchaSecurityImages.php?width=100&height=20&characters=6" />
Please enter the text into the textbox below you see in the image above. This is required to prevent automated submission of forms:</span></td>
</tr>
<tr>
<td><input name="security_code" type="text" style="WIDTH:40%;"/></td>
</tr>
</table>
</fieldset>
<table width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td><input name="Submit" type="Submit" class="buttonS" value="submit"/><input
name="reset" type="reset" class="buttonR" value="reset"/></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</body>
</html>
=======================
If anyone can help me regarding this I would be glad. Also, could you please let me know that where would I keep the .php files to my server? I want redirect to the users to my 'Submission Confirmed' page after clicking on the submit button.
Eagerly waiting for your help.
Thank you.
Regards,
Sumu
Hi, recently I'm going to make a website. As a novice designer I've set up the site, but one thing I could not be able to fix that is my contact form. So, I need your help to make php codes for my contact form. The html structure is given below:
==========================
<html>
<head><title>Contact Form</title>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0">
<tr align="center">
<td valign="top" align="left" class="support"><form name="Contact_Form" method="post"
action="form.php" enctype="multipart/form-data">
<fieldset class="fieldbox">
<legend>General Information</legend>
<table width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td width="30%" align="left" valign="top" class="formtext">Full Name: *</td>
<td width="70%"><input name="fullname" type="text" size="25" value=""/></td>
</tr>
<tr>
<td align="left" valign="top" class="formtext">Email: *</td>
<td><input name="email" type="text" size="25" value=""/></td>
</tr>
<tr>
<td align="left" valign="top" class="formtext">City: *</td>
<td><input name="cityname" type="text" size="25" value=""/></td>
</tr>
<tr>
<td align="left" valign="top" class="formtext">Country: *</td>
<td><input name="countryname" type="text" size="25" value=""/></td>
</tr>
</table>
</fieldset>
<fieldset class="fieldbox">
<legend>Department</legend>
<table width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td width="30%" align="left" valign="top" class="formtext">Where to send: *</td>
<td width="70%">
<select name="Department">
<option>Affiliate</option>
<option>Feedback</option>
<option>Services</option>
<option>Support</option>
</select>
</td>
</tr>
</table>
</fieldset>
<fieldset class="fieldbox">
<legend>Message Details</legend>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td align="left" valign="top" class="formtext" width="30%">Subject: *</td>
<td width="70%"><input name="subject" type="text" size="25" value=""
style="WIDTH:98%"/></td>
</tr>
<tr>
<td colspan="2"><textarea name="message" rows="10" cols="30"
style="WIDTH:98%;"></textarea></td>
</tr>
</table>
</fieldset>
<fieldset class="fieldbox">
<legend>Verify Submission</legend>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td><span class="smalltext"><img src="CaptchaSecurityImages.php?width=100&height=20&characters=6" />
Please enter the text into the textbox below you see in the image above. This is required to prevent automated submission of forms:</span></td>
</tr>
<tr>
<td><input name="security_code" type="text" style="WIDTH:40%;"/></td>
</tr>
</table>
</fieldset>
<table width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td><input name="Submit" type="Submit" class="buttonS" value="submit"/><input
name="reset" type="reset" class="buttonR" value="reset"/></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</body>
</html>
=======================
If anyone can help me regarding this I would be glad. Also, could you please let me know that where would I keep the .php files to my server? I want redirect to the users to my 'Submission Confirmed' page after clicking on the submit button.
Eagerly waiting for your help.
Thank you.
Regards,
Sumu