please help, here is all my code:
<div id='div_phone_big'>
</div>
<head>
<script type="text/JavaScript">
function getChoice(val)
{
yesNo = new Array("Yes", "No");
var getsel = document.contactus.yesnolist.value;
var e = document.getElementById("yesnolist");
var strUser = e.options[e.selectedIndex].value;
if (strUser == "no")
{
//alert('lakjdlakjsdlajd');
window.location.href = "http://www.rainbowcode.net/index.php/util/faq";
//document.write(window.location.href);
window.location('http://www.rainbowcode.net/index.php/util/faq');
}
else
{
document.contactus.emailreply.value = "";
document.contactus.commtext.value = "";
document.contactus.message.value = "";
document.contactus.commlist.value = "";
}
return strUser;
}
function getCommChoice(x)
{
comm = new Array("Compliment","Complaint","Feedback","Suggestion","Billing Query","Other");
var getsel = document.contactus.commlist.value;
document.contactus.message.value = comm[getsel];
return document.contactus.message.value;
}
function sayThanks()
{
alert("Thank you for submitting");
return true;
}
</script>
</head>
<body>
<form name = "contactus" method="post" onSubmit="return sayThanks()">
<table class='table_format_content_rbc' border='0'>
<div>
<span class='spn_big_lightblue_rbc'>RAINBOW</span><span class='spn_big_black_rbc'>CODE: CONTACT US </span>
<td colspan='3' align='left' class='small_header_rbc'>
<h3>Problems and general queries</h3>
<li>Phone our call centre on 086 110 6472 ( Available 8am-5pm from monday-friday ) or</li>
<li>Email us at
<a href="mailto:helloise@pagesalive.co.za">feedback@miranetworks.net</a>
</li>
</td>
</div>
<div>
<tr></tr>
<tr></tr>
<tr>
<td colspan='3' align='left' class='small_header_rbc'>
<h3>Frequently Asked Questions</h3>
<li>Please take a moment to read the Frequently Asked Questions as the solution to your query could be waiting for you there!</li>
<li>Have you read the <?php echo link_to('FAQ','util/faq') ?> ?
<select id="yesnolist" onChange="getChoice(this.value)">
<option value="yes" selected="selected">Yes</option>
<option value="no">No</option>
</select>
</li>
</tr>
<tr></tr>
<tr></tr>
</div>
<div>
<tr>
<td colspan='3' align='left' class='small_header_rbc'>
<h3>Feedback and Suggestions</h3>
</select>
</li>
<textarea name="message" rows="10" cols="20"></textarea>
<br /><br />
<?php
$to = "helloise@pagesalive.co.za";
$subject = $_REQUEST["commlist"];
$email = $_REQUEST["emailreply"];
$message = $_REQUEST["message"];
$headers = "From: $email";
mail($to, $subject, $message, $headers);
?>
<input type="submit" value="Send">
<input type="reset" value="Reset">
</td>
</tr>
</div>
</table>
<table class='table_format_content_rbc' border='0'>
<tr>
<td colspan='3' align='left' class='small_header_rbc'>
<br/>
</td>
<tr>
</table>
</form>
</body>
and also set the php.ini file portion:
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
sendmail_path = /usr/sbin/sendmail -t
and also ran:
$ sudo echo "test" | mail -s "test" helloise@pagesalive.co.za
The program 'mail' can be found in the following packages:
* heirloom-mailx
* mailutils
please help?? <option value="feedback">Feedback</option>
<option value="suggestion">Suggestion</option>
<option value="billquery">Billing Query</option>
<option value="other">Other</option>
</select>
</li>
<textarea name="message" rows="10" cols="20"></textarea>
<br /><br />
<?php
$to = "helloise@pagesalive.co.za";
$subject = $_REQUEST["commlist"];
$email = $_REQUEST["emailreply"];
$message = $_REQUEST["message"];
$headers = "From: $email";
mail($to, $subject, $message, $headers);
?>
<input type="submit" value="Send">
<input type="reset" value="Reset">
</td>
</tr>
</div>
</table>
<table class='table_format_content_rbc' border='0'>
<tr>
<td colspan='3' align='left' class='small_header_rbc'>
<br/>
</td>
<tr>
</table>
</form>
</body>
and also set the php.ini file portion:
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
sendmail_path = /usr/sbin/sendmail -t
and also ran:
$ sudo echo "test" | mail -s "test" helloise@pagesalive.co.za
The program 'mail' can be found in the following packages:
* heirloom-mailx
* mailutils
please help??