1,105,333 Community Members

PHP Form submit to email

Member Avatar
NitinThacker
Newbie Poster
4 posts since Jun 2007
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

HEllo i want to know how to submit form to email so that one can received all form infromation in email , if u have seen Contact pages, inquiery pages in website same as i want. Either in PHP or ASP

Member Avatar
nav33n
Purple hazed!
3,894 posts since Nov 2007
Reputation Points: 472 [?]
Q&As Helped to Solve: 381 [?]
Skill Endorsements: 20 [?]
Team Colleague
Featured
 
0
 

maybe you should check previous posts. But anyway, when you submit a form(for example,form1.php), post all the variables to another page(form2.php), add those variables to another variable, say $message and use mail function to send the mail. More on mail function Here.

Member Avatar
innovativeatul
Junior Poster in Training
72 posts since Dec 2007
Reputation Points: -7 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
-1
 

Follow the steps iam mention and if you have any confusion in understanding the code pls .get back to me


CREATING THE FORM IN PHP :

<form method="post" action="contact.php">
Email: <input name="email" type="text"><br>
Message:<br>
<textarea name="message" rows="15" cols="40"></textarea><br>
<input type="submit">
</form>

The above form will collect the user's email and message, and then pass them to the page contact.php


SENDING THE MAIL :

<?php
$to = "you@yoursite.com";
$subject = "Contact Us";
$email = $_REQUEST ;
$message = $_REQUEST ;
$headers = "From: $email";
$sent = mail($to, $subject, $message, $headers) ;
if($sent)
{print "Your mail was sent successfully"; }
else
{print "We encountered an error sending your mail"; }
?>

SAVE THIS FILE AS CONTACT.PHP

HEY ! YOUR ARE DONE.

------------------

CHANGE THE FORM FIELD ACCORDING TO YOUR NEEDS I HAVE USED MESSAGE BOX BUT YOU ARE FREE TO USE ANY FIELD ACCORDING YOUR USAGE. HOPE IT HELPS YOU.

thnx,

Member Avatar
amylawson
Newbie Poster
4 posts since Dec 2007
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Hi,

i am very new to php so please forgive me if i sound stupid.i have a tell friend php code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>iTell from urQuiz</title>
<style type="text/css">
<!--
.style2 {font-size: 12px}
-->
</style>
</head>
<body>
<form action="<? echo $_POST; ?>" method="post"> Your Name : <br />
<input name="name" type="text"><br />Friend's Email Address : <br />
<input name="email" type="text"><br />
<input name="Send" type="submit" value="Send">
</form>
<?

if (@$_POST=="Send")
{
$name=$_POST;
$email=$_POST;
$subject = $name. " wants you to visit this site, its cool!";
//This is the body section of the email and can be substituted for your message
$message= "Hi, \n\n" .$name. " thinks you might like to visit our website : \n\n http://www.yourdomain.co.uk \n\n\n\n\n\n\n\nNote: This message was not sent unsolicited. It was sent through a form located at http://www.yourdomain.co.uk If you believe this message was received on error, please disregard it.";
$headers = 'From: webmaster@yourdomain.co.uk' . "\r\n" . 'Reply-To: webmaster@yourdomain.co.uk' . "\r\n" . 'X-Mailer: PHP/' . phpversion();
mail($email, $subject, $message, $headers);
echo "You`ve recommended our site to: $email Thanks you";
}
?>
<br />
<br />


</body>

</html>

i am running this code on windows >apache server and php 5.
but i cant seem to get it to work.could anybody please help me out and suggest how i could get this script to work on windows ..do i need to change anything in the code or do i need to download any other software..please help

Member Avatar
nav33n
Purple hazed!
3,894 posts since Nov 2007
Reputation Points: 472 [?]
Q&As Helped to Solve: 381 [?]
Skill Endorsements: 20 [?]
Team Colleague
Featured
 
0
 

what is the error that you are getting ? What do you mean by cant seem to get it to work ?

Member Avatar
Habro
Newbie Poster
2 posts since Feb 2008
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>iTell from urQuiz</title>
<style type="text/css">
<!--
.style2 {font-size: 12px}
-->
</style>
</head>
<body>
<form action="<? echo $_POST; ?>" method="post"> Your Name : <br />
<input name="name" type="text"><br />Friend's Email Address : <br />
<input name="email" type="text"><br />
<input name="Send" type="submit" value="Send">
</form>
<?

if (@$_POST=="Send")
{
$name=$_POST;
$email=$_POST;
$subject = $name. " wants you to visit this site, its cool!";
//This is the body section of the email and can be substituted for your message
$message= "Hi, \n\n" .$name. " thinks you might like to visit our website : \n\n http://www.yourdomain.co.uk \n\n\n\n\n\n\n\nNote: This message was not sent unsolicited. It was sent through a form located at http://www.yourdomain.co.uk If you believe this message was received on error, please disregard it.";
$headers = 'From: webmaster@yourdomain.co.uk' . "\r\n" . 'Reply-To: webmaster@yourdomain.co.uk' . "\r\n" . 'X-Mailer: PHP/' . phpversion();
mail($email, $subject, $message, $headers);
echo "You`ve recommended our site to: $email Thanks you";
}
?>
<br />
<br />


</body>

</html>


Doesn't work for me either......

i get
==============
Not Found
The requested document was not found on this server.
==============

I don't know how to resolve it.

Member Avatar
Habro
Newbie Poster
2 posts since Feb 2008
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Nobody ????

Member Avatar
Tarun Jain
Newbie Poster
1 post since Aug 2009
Reputation Points: -3 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
-2
 

could you please help me to write perfect code as per my requirement, actually, i've form details like (please refer to the attached image), please could you give me right code for the same. it will help me immense and i will be greatful to you.

Attachments form_image.jpg 15.88KB
Member Avatar
slyme
Junior Poster in Training
72 posts since Aug 2009
Reputation Points: 13 [?]
Q&As Helped to Solve: 6 [?]
Skill Endorsements: 0 [?]
 
0
 

You have got a mail server running haven't you? I use IIS/PHP on Windows and I run Mercury Mail Server (because the IIS mail server is a bit of a mystery to me) to handle the email. I'm guessing that Apache/PHP on windows will also need a mail server.

Also, take out the <? echo $_POST; ?> so that the form action is action=""

Member Avatar
ptemedia
Light Poster
29 posts since Jul 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Here is my code:

Place this in your HTML code.
onSubmit="return checkemail(this)" // have a javascript function called checkemail (or change name on function and below) to check for null values.

<form method="post" name="Emailform" action="sendmail.php" target="_self" onSubmit="return checkemail(this)"> 
 
<table border="0" cellspacing="0" cellpadding="4" width="90%" id="ContactMe"> 
<tr> 
    <td width="30%"><div align="right">Name:</div></td> 
    <td width="70%"><input type="text" name="name" size="30" /></td> 
</tr> 
 
<tr> 
    <td><div align="right">Email:</div></td> 
    <td><input type="text" name="email" size="30" /></td> 
</tr> 
 
<tr> 
    <td><div align="right">Website:</div></td> 
    <td><input type="text" name="site" size="30" /></td> 
</tr> 
 
<tr> 
    <td><div align="right">Message:</div></td> 
    <td><textarea name="message" cols="40" rows="4"></textarea></td> 
</tr> 
 
<tr> 
<td>&nbsp;</td> 
    <td> 
    <input type="submit" name="submit" value="Submit" /> 
    <input type="reset" name="reset" value="Reset" /> 
    </td> 
</tr> 
 
</table> 
</form>

And now make a php file called 'sendmail.php'

<?php
$to = "YOUR EMAIL@YOUR DOMAIN.com";
$email = $_REQUEST['email'] ;
$name = $_REQUEST['name'] ;
$site = $_REQUEST['site'] ;
$subject = "Message from: $name";
$message = $_REQUEST['message'] ;
$headers = "noreply@YOURWEBSITE.com";
$body = "From: $name \n\n Email: $email \n\n Wesbite: $site \n\n Message: $message";
$sent = mail($to, $subject, $body, $headers) ;
if($sent)
{echo "<script language=javascript>window.location = 'LINK BACK TO CONTACT PAGE';</script>";}
else
{echo "<script language=javascript>window.location = 'LINK BACK TO CONTACT PAGE';</script>";}
?>

The result will be a well structured email (not sent to junk mail) with all the information from the sender.

I hope this helps all of you.
Here is my website where you can find my contact page: <snipped>

If you have any comments or queries please contact me there.
I can help you with the javascript to check for null values, and help you make a method to give the user feedback when the message is sent, or not.

Member Avatar
Ramorchid
Newbie Poster
1 post since Jul 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Hi guys, I'm to new to the web development. Kindly tell me how to send the form to my domain.

Attachments tes.png 44.64KB
Member Avatar
manzarr
Light Poster
39 posts since Jul 2010
Reputation Points: 1 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
0
 

what is error on page
i am give a link that helpful to you visit here
http://www.ibdhost.com/contact/

Member Avatar
EverWebby
Light Poster
46 posts since Jan 2010
Reputation Points: 1 [?]
Q&As Helped to Solve: 5 [?]
Skill Endorsements: 0 [?]
 
0
 

Why, with all of the suggestions is there no input validation or captcha. Those forms are going to be spam havens.

Member Avatar
ptemedia
Light Poster
29 posts since Jul 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

A easy and simple way to reduce some spam is to include a hidden field like this:

<form method="post" name="myform" action="example.php" target="_self" onSubmit="return verify(this)">

<table>
//other fields here

<tr style="visibility:hidden">
<td><input type="text" name="verify" size="20" value="" /></td>
</tr>

</table>
</form>

Then, onSubmit of the form, run some javascript code to check for null value in 'verify'. Since its hidden, a human cannot enter data so if the field is empty, return true and send email. A spam bot would automatically enter data so if the field is not empty, return false and do nothing or run an error message.

Member Avatar
manzarr
Light Poster
39 posts since Jul 2010
Reputation Points: 1 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
0
 

In the example below we first declare the variables ($to, $subject, $message, $from, $headers), then we use the variables in the mail() function to send an e-mail:

<?php
$to = "someone@example.com";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "someonelse@example.com";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>

or for mail example see this link ibdhost.com/contact

Member Avatar
vijayregonda
Newbie Poster
1 post since Dec 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Thanks..

I used this code.. but aftr hosting this pages in my site it will showing error like... 'We encountered an error sending your mail'

Please check if i did any mistake in my script..

code of form:

<form name="membership" method="post" action="contact.php" enctype="multipart/form-data">
<input name="name" type="text" id="name" size="35">
<input name="email" type="text" id="email" size="35">
<input name="profession" type="text" id="profession" size="35">
<input name="phone" type="text" id="phone" size="35">
<textarea name="comments" cols="55" rows="5" id="comments"></textarea>
<input type="submit" name="Submit" value="Submit">
</form>

code of contact.php:

<?php
$to = "vijayregonda@gmail.com";
$subject = "Contact Us";
$name = $_REQUEST['name'] ;
$email = $_REQUEST['email'] ;
$profession = $_REQUEST['profession'] ;
$phone = $_REQUEST['phone'] ;
$comments = $_REQUEST['comments'] ;
$headers = "From: $email";
$sent = mail($to, $name, $phone, $comments, $headers) ;
if($sent)
{print "Your mail was sent successfully"; }
else
{print "We encountered an error sending your mail"; }
?>

This is my script as u gvn... nw please suggest me to get the email of form details to my mail???

Member Avatar
unversity top
Newbie Poster
3 posts since May 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
-1
 

can you pls provide me with php code for this form below

<table border="0" align="left" cellpadding="2" cellspacing="0" bgcolor="transparent" style="text-align:left;">
<tr>
<td style="" colspan="2">
<span style="text-align: left"><font face="Verdana" size="2" color="#000000"><b style="font-size:20px;">Contact Form</b></font><font face="Verdana" size="2" color="#000000"></font><font face="Verdana" size="2" color="#000000"></font></span><span style="text-align: left"><font face="Verdana" size="2" color="#000000"></font></span><font face="Verdana" size="2" color="#000000"><br />
<br /></font>
</td>
</tr>
<tr valign="top">
<td style="text-align: left;" align="">
<font face="Verdana" size="2" color="#000000"><b>Name</b></font> <span style="color:red;"><small>*</small></span>
</td>
</tr>
<tr>
<td style="">
<input id="element_0" name="element_0" value="" size="30" class="validate[required]" type="text" />
<div style="padding-bottom:8px;color:#000000;">
<small><font face="Verdana">Enter your Name</font></small>
</div>
</td>
</tr>
<tr valign="top">
<td align="">
<font face="Verdana" size="2" color="#000000"><b>Phone Number</b></font> <span style="color:red;"><small>*</small></span>
</td>
</tr>
<tr>
<td style="">
<table cellpadding='0' cellspacing='0' border='0'>
<tr>
<td style='padding-left:0px;'>
<input maxlength='3' style='width:30px;' value='' id='element_1_1' name='element_1[]' type='text' class='validate[required,custom[onlyNumber],length[3,3]]' /><br />
<font face="Verdana" size="2" color="#000000">###</font>
</td>
<td style='padding-top:5px;padding-left:3px;' valign='top'>
<font face="Verdana" size="2" color="#000000">-</font>
</td>
<td style='padding-left:3px;'>
<input maxlength='3' style='width:30px;' value='' id='element_1_2' name='element_1[]' type='text' class='validate[required,custom[onlyNumber],length[3,3]]' /><br />
<font face="Verdana" size="2" color="#000000">###</font>
</td>
<td style='padding-top:5px;padding-left:3px;' valign='top'>
<font face="Verdana" size="2" color="#000000">-</font>
</td>
<td style='padding-left:3px;'>
<input maxlength='4' style='width:40px;' value='' id='element_1_3' name='element_1[]' type='text' class='validate[required,custom[onlyNumber],length[4,4]]' /><br />
<font face="Verdana" size="2" color="#000000">####</font>
</td>
</tr>
</table>
<div style="padding-bottom:8px;color:#000000;"></div>
</td>
</tr>
<tr valign="top">
<td style="" align="">
<font face="Verdana" size="2" color="#000000"><b>Email</b></font> <span style="color:red;"><small>*</small></span>
</td>
</tr>
<tr>
<td style="">
<input id="element_2" name="element_2" class="validate[required,custom[email]]" value="" size="30" type="text" />
<div style="padding-bottom:8px;color:#000000;"></div>
</td>
</tr>
<tr valign="top">
<td style="" align="">
<font face="Verdana" size="2" color="#000000"><b>Address</b></font> <span style="color:red;"><small>*</small></span>
</td>
</tr>
<tr>
<td style="">
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
<tr>
<td colspan='2' style='padding-left:0;'>
<input value='' type='text' style='width:99%;' id='element_3_1' name='element_3[]' class='validate[required]' /><br />
<font face="Verdana" size="2" color="#000000">Street Address</font>
</td>
</tr>
<tr>
<td colspan='2' style='padding-left:0;'>
<input value='' type='text' style='width:99%;' id='element_3_2' name='element_3[]' class='validate[optional]' /><br />
<font face="Verdana" size="2" color="#000000">Address Line 2</font>
</td>
</tr>
<tr>
<td style='width:50%;padding-left:0;'>
<input value='' type='text' style='width:99%;' id='element_3_3' name='element_3[]' class='validate[required]' /><br />
<font face="Verdana" size="2" color="#000000">City</font>
</td>
<td style='width:50%;padding-left:5px;'>
<input value='' type='text' style='width:99%;' id='element_3_4' name='element_3[]' class='validate[required]' /><br />
<font face="Verdana" size="2" color="#000000">State / Province / Region</font>
</td>
</tr>
<tr>
<td style='width:50%;padding-left:0;'>
<input value='' type='text' style='width:99%;' id='element_3_5' name='element_3[]' class='validate[required]' /><br />
<font face="Verdana" size="2" color="#000000">Postal / Zip Code</font>
</td>
<td style='width:50%;padding-left:5px;'>
<select style='width:100%;' id='element_3_6' name='element_3[]' class='validate[required]'>
<option value="India">India</option>
<optgroup label="North America">
<option value="Antigua and Barbuda">
Antigua and Barbuda
</option>
<option value="Aruba,Bahamas">
Aruba,Bahamas
</option>
<option value="Barbados">
Barbados
</option>
<option value="Belize">
Belize
</option>
<option value="Canada">
Canada
</option>
<option value="Cook Islands">
Cook Islands
</option>
<option value="Costa Rica">
Costa Rica
</option>
<option value="Cuba">
Cuba
</option>
<option value="Dominica">
Dominica
</option>
<option value="Dominican Republic">
Dominican Republic
</option>
<option value="El Salvador">
El Salvador
</option>
<option value="Grenada">
Grenada
</option>
<option value="Guatemala">
Guatemala
</option>
<option value="Haiti">
Haiti
</option>
<option value="Honduras">
Honduras
</option>
<option value="Jamaica">
Jamaica
</option>
<option value="Mexico">
Mexico
</option>
<option value="Netherlands Antilles">
Netherlands Antilles
</option>
<option value="Nicaragua">
Nicaragua
</option>
<option value="Panama ">
Panama
</option>
<option value="Puerto Rico ">
Puerto Rico
</option>
<option value="Saint Kitts and Nevis">
Saint Kitts and Nevis
</option>
<option value="Saint Lucia">
Saint Lucia
</option>
<option value="Saint Vincent and the Grenadines">
Saint Vincent and the Grenadines
</option>
<option value="Trinidad and Tobago">
Trinidad and Tobago
</option>
<option value="United States">
United States
</option>
</optgroup>
<optgroup label="South America">
<option value="Argentina">
Argentina
</option>
<option value="Bolivia">
Bolivia
</option>
<option value="Brazil">
Brazil
</option>
<option value="Chile">
Chile
</option>
<option value="Colombia">
Colombia
</option>
<option value="Ecuador">
Ecuador
</option>
<option value="Guyana">
Guyana
</option>
<option value="Paraguay">
Paraguay
</option>
<option value="Peru">
Peru
</option>
<option value="Suriname">
Suriname
</option>
<option value="Uruguay">
Uruguay
</option>
<option value="Venezuela">
Venezuela
</option>
</optgroup>
<optgroup label="Europe">
<option value="Albania">
Albania
</option>
<option value="Andorra">
Andorra
</option>
<option value="Armenia">
Armenia
</option>
<option value="Austria">
Austria
</option>
<option value="Azerbaijan">
Azerbaijan
</option>
<option value="Belarus">
Belarus
</option>
<option value="Belgium">
Belgium
</option>
<option value="Bosnia and Herzegovina">
Bosnia and Herzegovina
</option>
<option value="Bulgaria">
Bulgaria
</option>
<option value="Croatia">
Croatia
</option>
<option value="Cyprus">
Cyprus
</option>
<option value="Czech Republic">
Czech Republic
</option>
<option value="Denmark">
Denmark
</option>
<option value="Estonia">
Estonia
</option>
<option value="Faroe Islands">
Faroe Islands
</option>
<option value="Finland">
Finland
</option>
<option value="France">
France
</option>
<option value="Georgia">
Georgia
</option>
<option value="Germany">
Germany
</option>
<option value="Greece">
Greece
</option>
<option value="Hungary">
Hungary
</option>
<option value="Iceland">
Iceland
</option>
<option value="Ireland">
Ireland
</option>
<option value="Italy">
Italy
</option>
<option value="Latvia">
Latvia
</option>
<option value="Liechtenstein">
Liechtenstein
</option>
<option value="Lithuania">
Lithuania
</option>
<option value="Luxembourg">
Luxembourg
</option>
<option value="Macedonia">
Macedonia
</option>
<option value="Malta">
Malta
</option>
<option value="Moldova">
Moldova
</option>
<option value="Monaco">
Monaco
</option>
<option value="Montenegro">
Montenegro
</option>
<option value="Netherlands">
Netherlands
</option>
<option value="Norway">
Norway
</option>
<option value="Poland">
Poland
</option>
<option value="Portugal">
Portugal
</option>
<option value="Romania">
Romania
</option>
<option value="San Marino">
San Marino
</option>
<option value="Serbia">
Serbia
</option>
<option value="Slovakia">
Slovakia
</option>
<option value="Slovenia">
Slovenia
</option>
<option value="Spain">
Spain
</option>
<option value="Sweden">
Sweden
</option>
<option value="Switzerland">
Switzerland
</option>
<option value="Ukraine">
Ukraine
</option>
<option value="United Kingdom">
United Kingdom
</option>
<option value="Vatican City">
Vatican City
</option>
</optgroup>
<optgroup label="Asia">
<option value="Afghanistan">
Afghanistan
</option>
<option value="Bahrain">
Bahrain
</option>
<option value="Bangladesh">
Bangladesh
</option>
<option value="Bhutan">
Bhutan
</option>
<option value="Brunei Darussalam">
Brunei Darussalam
</option>
<option value="Myanmar">
Myanmar
</option>
<option value="Cambodia">
Cambodia
</option>
<option value="China">
China
</option>
<option value="East Timor">
East Timor
</option>
<option value="Hong Kong">
Hong Kong
</option>
<option value="India" selected="selected">
India
</option>
<option value="Indonesia">
Indonesia
</option>
<option value="Iran">
Iran
</option>
<option value="Iraq">
Iraq
</option>
<option value="Israel">
Israel
</option>
<option value="Japan">
Japan
</option>
<option value="Jordan">
Jordan
</option>
<option value="Kazakhstan">
Kazakhstan
</option>
<option value="North Korea">
North Korea
</option>
<option value="South Korea">
South Korea
</option>
<option value="Kuwait">
Kuwait
</option>
<option value="Kyrgyzstan">
Kyrgyzstan
</option>
<option value="Laos">
Laos
</option>
<option value="Lebanon">
Lebanon
</option>
<option value="Malaysia">
Malaysia
</option>
<option value="Maldives">
Maldives
</option>
<option value="Mongolia">
Mongolia
</option>
<option value="Nepal">
Nepal
</option>
<option value="Oman">
Oman
</option>
<option value="Pakistan">
Pakistan
</option>
<option value="Palestine">
Palestine
</option>
<option value="Philippines">
Philippines
</option>
<option value="Qatar">
Qatar
</option>
<option value="Russia">
Russia
</option>
<option value="Saudi Arabia">
Saudi Arabia
</option>
<option value="Singapore">
Singapore
</option>
<option value="Sri Lanka">
Sri Lanka
</option>
<option value="Syria">
Syria
</option>
<option value="Taiwan">
Taiwan
</option>
<option value="Tajikistan">
Tajikistan
</option>
<option value="Thailand">
Thailand
</option>
<option value="Turkey">
Turkey
</option>
<option value="Turkmenistan">
Turkmenistan
</option>
<option value="United Arab Emirates">
United Arab Emirates
</option>
<option value="Uzbekistan">
Uzbekistan
</option>
<option value="Vietnam">
Vietnam
</option>
<option value="Yemen">
Yemen
</option>
</optgroup>
<optgroup label="Oceania">
<option value="Australia">
Australia
</option>
<option value="Fiji">
Fiji
</option>
<option value="Kiribati">
Kiribati
</option>
<option value="Marshall Islands">
Marshall Islands
</option>
<option value="Micronesia">
Micronesia
</option>
<option value="Nauru">
Nauru
</option>
<option value="New Zealand">
New Zealand
</option>
<option value="Palau">
Palau
</option>
<option value="Papua New Guinea">
Papua New Guinea
</option>
<option value="Samoa">
Samoa
</option>
<option value="Solomon Islands">
Solomon Islands
</option>
<option value="Tonga">
Tonga
</option>
<option value="Tuvalu">
Tuvalu
</option>
<option value="Vanuatu">
Vanuatu
</option>
</optgroup>
<optgroup label="Africa">
<option value="Algeria">
Algeria
</option>
<option value="Angola">
Angola
</option>
<option value="Benin">
Benin
</option>
<option value="Botswana">
Botswana
</option>
<option value="Burkina Faso">
Burkina Faso
</option>
<option value="Burundi">
Burundi
</option>
<option value="Cameroon">
Cameroon
</option>
<option value="Cape Verde">
Cape Verde
</option>
<option value="Central African Republic">
Central African Republic
</option>
<option value="Chad">
Chad
</option>
<option value="Comoros">
Comoros
</option>
<option value="Democratic Republic of the Congo">
Democratic Republic of the Congo
</option>
<option value="Republic of the Congo">
Republic of the Congo
</option>
<option value="Djibouti">
Djibouti
</option>
<option value="Egypt">
Egypt
</option>
<option value="Equatorial Guinea">
Equatorial Guinea
</option>
<option value="Eritrea">
Eritrea
</option>
<option value="Ethiopia">
Ethiopia
</option>
<option value="Gabon">
Gabon
</option>
<option value="Gambia">
Gambia
</option>
<option value="Ghana">
Ghana
</option>
<option value="Gibraltar">
Gibraltar
</option>
<option value="Guinea">
Guinea
</option>
<option value="Guinea-Bissau">
Guinea-Bissau
</option>
<option value="Cote d'Ivoire">
Cote d'Ivoire
</option>
<option value="Kenya">
Kenya
</option>
<option value="Lesotho">
Lesotho
</option>
<option value="Liberia">
Liberia
</option>
<option value="Libya">
Libya
</option>
<option value="Madagascar">
Madagascar
</option>
<option value="Malawi">
Malawi
</option>
<option value="Mali">
Mali
</option>
<option value="Mauritania">
Mauritania
</option>
<option value="Mauritius">
Mauritius
</option>
<option value="Morocco">
Morocco
</option>
<option value="Mozambique">
Mozambique
</option>
<option value="Namibia">
Namibia
</option>
<option value="Niger">
Niger
</option>
<option value="Nigeria">
Nigeria
</option>
<option value="Rwanda">
Rwanda
</option>
<option value="Sao Tome and Principe">
Sao Tome and Principe
</option>
<option value="Senegal">
Senegal
</option>
<option value="Seychelles">
Seychelles
</option>
<option value="Sierra Leone">
Sierra Leone
</option>
<option value="Somalia">
Somalia
</option>
<option value="South Africa">
South Africa
</option>
<option value="Sudan">
Sudan
</option>
<option value="Swaziland">
Swaziland
</option>
<option value="United Republic of Tanzania">
United Republic of Tanzania
</option>
<option value="Togo">
Togo
</option>
<option value="Tunisia">
Tunisia
</option>
<option value="Uganda">
Uganda
</option>
<option value="Zambia">
Zambia
</option>
<option value="Zimbabwe">
Zimbabwe
</option>
</optgroup>
</select><br />
<font face="Verdana" size="2" color="#000000">Country</font>
</td>
</tr>
</table>
<div style="padding-bottom:8px;color:#000000;"></div>
</td>
</tr>
<tr valign="top">
<td style="" align="">
<font face="Verdana" size="2" color="#000000"><b>Main Category</b></font> <span style="color:red;"><small>*</small></span>
</td>
</tr>
<tr>
<td style=""><select id="element_4" name="element_4" class="validate[required]">
<option value="" selected="selected"> Matrimonial </option>
<option value="Property"> Property </option>
<option value="Recruitment"> Recruitment </option>
<option value="Business"> Business </option>
<option value="Personal"> Personal </option>
<option value="Vehicles"> Vehicles </option>
<option value="Announcement"> Announcement </option>
<option value="Astrology"> Astrology </option>
<option value="Classifieds Rememberance"> Classifieds Rememberance </option>
<option value="Computers"> Computers </option>
<option value="Education"> Education </option>
<option value="Entertainment"> Entertainment </option>
<option value="Marriage Bureau"> Marriage Bureau </option>
<option value="Obituary"> Obituary </option>
<option value="Retail"> Retail </option>
<option value="Services"> Services </option>
<option value="Situation Wanted"> Situation Wanted </option>
<option value="Tenders/Public Notice"> Tenders/Public Notice </option>
<option value="To Rent"> To Rent </option>
<option value="Travel"> Travel </option>
<option value="Wedding Arrangements"> Wedding Arrangements </option>
<option value="Other"> Other </option>
</select> <div style="padding-bottom:8px;color:#000000;"></div>
</td>
</tr>
<tr valign="top">
<td style="" align="">
<font face="Verdana" size="2" color="#000000"><b>Your Ad</b></font> <span style="color:red;"><small>*</small></span>
</td>
</tr>
<tr>
<td style="">
<textarea id="element_5" name="element_5" cols="60" rows="10" class="validate[required]">
</textarea>
<div style="padding-bottom:8px;color:#000000;">
<small><font face="Verdana">Enter your ad here.</font></small>
</div>
</td>
</tr>
<tr valign="top">
<td style="" align="">
<font face="Verdana" size="2" color="#000000"><b>Comments (if Any)</b></font>
</td>
</tr>
<tr>
<td style="">
<textarea id="element_6" name="element_6" cols="45" rows="10" class="validate[optional]">
</textarea>
<div style="padding-bottom:8px;color:#000000;"></div>
</td>
</tr>
<tr>
<td colspan="2">
<table cellpadding="5" cellspacing="0" bgcolor="#E4F8E4" width="100%">
<tr bgcolor="#AAD6AA">
<td colspan="2">
<font color="#FFFFFF" face="Verdana" size="2"><b>Image Verification</b></font>
</td>
</tr>
<tr>
<td style="padding:2px; width:100px;">
<img id="captcha_image" src="http://www.emailmeform.com/builder/captcha/index/3ea1faafcc56a9fae037497e52f55a88" alt="captcha" name="captcha_image" />
</td>
<td valign="top">
<div>
<font color="#000000">Please enter the text from the image</font>:<br />
<input type="text" id="captcha_code" name="captcha_code" maxlength="10" size="10" class="validate[required,funcCall[valid_captcha]]" /> [<a id="captcha_code_refresh" href=
"javascript:void(0);" onclick="document.getElementById('captcha_image').src = 'http://www.emailmeform.com/builder/captcha/index/'+Math.random();get_valid_captcha();return false;"
name="captcha_code_refresh">Refresh Image</a>] [<a id="captcha_code_about" href="javascript:void(0);" onclick=
"window.open('http://www.emailmeform.com/captcha-instruction.html','_blank','width=400, height=500, left=' + (screen.width-450) + ', top=100');return false;" name=
"captcha_code_about">What's This?</a>]
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" align="right">
<input name="element_counts" value="7" type="hidden" /> <input name="embed" value="forms" type="hidden" /><input value="Submit" type="submit" /><input value="Clear" type="reset" />
</td>
</tr>
</table>

Member Avatar
Deanb
Newbie Poster
1 post since Aug 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

I need to make a submit fuction on a price calculator I have made for a client, just need some advice. The URL for the form is:
http://pantherfireworks.com/NEC_calculator/calculator.html
I would only need the quantity "order" fields submitted.

Thanks,
Dean

Member Avatar
prof php
Newbie Poster
13 posts since Jan 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

The problem might be that you are not running any mail server software like Mercury. I use Xampp and it comes with Mercury so it works for me.

Member Avatar
almostbob
Nearly a Senior Poster
3,388 posts since Jan 2009
Reputation Points: 515 [?]
Q&As Helped to Solve: 425 [?]
Skill Endorsements: 14 [?]
 
0
 

Solution to all the above

READ THE Finelyconstructed MANUAL

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article