Hello I have been reading the forums and im struggling to find a answer to my problem. I have a html form which is being send to my email via PHP I am trying to add a drop down menu but I cant get the code to work with the PHP if someone could have a look and advise I would appreciate it. 🙂
HTML
<form method="post" action="sendmail.php">
<div align="justify">
<font color="#0000FF">
<blockquote>
<p align="left"><span class="style6">Name:</span>
<input name="name" type="message" size="15" maxlength="25" />
<span class="style6">Company:</span>
<input name="company" type="company" size="29" maxlength="40" />
<BR />
<BR />
<span class="style6">Phone Number:</span>
<input name="phone" type="phone" size="15" maxlength="30" />
<span class="style6">Email:</span>
<input name="email" type="email" size="23" maxlength="30" />
<BR />
<BR />
<span class="style6">Make / Model Number:</span>
<input name="pnumber" type="pnumber" size="47" maxlength="40" />
<BR />
<BR />
<span class="style6">Description of fault: </span>
<input name="fault" type="fault" size="51" maxlength="100" />
<BR />
<BR />
<span class="style6">How did you hear about us? </span>
<select name="options[]" type="options">
<option value="Google">Google</option>
<option value="Yahoo">Yahoo</option>
<option value="Referral">Referral</option>
<option value="other">Other</option>
</select><BR /><BR />
<span class="style6">If Referral / Other please explain: </span> <input name="other" type="other" size="38" maxlength="100" /><BR /><BR />
<input name="Reset " type="reset" id="Reset " />
<input type="submit" value="Submit">
</p>
</blockquote>
</div>
</form>
PHP
<?php
$message = $REQUEST['name'] ;
$company = $REQUEST['company'] ;
$phone = $REQUEST['phone'] ;
$text = $REQUEST['email'] ;
$pnumber = $REQUEST['pnumber'] ;
$fault = $REQUEST['fault'] ;
$other = $REQUEST['other'] ;
$dropdown = $REQUEST['dropdown[]'];
mail( "tapedriverepairs@s308468624.websitehome.co.uk", "Feedback Form Results",
"$message\nCompany Name: $company
Phone Number: $phone
Manufactures Model / Part Number: $pnumber
Referal Infomation: $other
Dropdown: $dropdown
Fault: $fault\n",
"From: $email" );
header( "Location: http://www.datanetuk.com/thankyou.shtml" );
?>
Thank you