PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<center>
<font size=3 color=blue>If you have a muot that you want us to research on, enter its name here.</font><br>
<form action=/quicklist/process.php method=post>
<input type=text maxlenth=40 name=name>
<input type="button" Value="Submit!" onclick="check(form,form.elements.length)">
<input type="hidden" name="r_name" value="You did not enter the muots name.">
</form>
</center>
The reason the submit button is a button, is because I have a code that checks and makes sure everything is entered in the form.
<?
$_POST['name'] == $name;
function generateEmail($name)
{
return "
Someone wants us to hunt down and write a report on a muot that goes by the name <font size=3 color=red><b> $name </b></font>
";
}
mail("nickman013@mac.com","MUOT SUBMITION",generateEmail($name), "Content-type: text/html\r\n");
?>
<font color=white><center><font size=5><b>
Thank You</b></font></center>
I wouldn't use short tags. And I'm not sure why you have that line above as it's not doing anything for you. == is a comparison operator, not an assignment operator.
<?
$from = "MUOT.NET";
$to = "nickman013@mac.com";
$subject = "MUOT QUICKLIST";
$body = "Someone wants us to hunt down and write a report on a muot that goes by the name <font size=3 color=red><b> $name </b></font>";
function send_mail($from, $to, $subject, $body) {
$header = "From: " . $from . "\n";
mail($to, $subject, $body, $header);
}
?>
<font color=white>
<center><font size=5><b>
Thank You
</b>
</font>
</center>
<center>
<font size=3 color=blue>If you have a muot that you want us to research on, enter its name here.</font><br>
<form action="/quicklist/process.php" method="post">
<input type="text" maxlenth="40" name="name">
<input type="button" Value="Submit!" onclick="check(form,form.elements.length)">
<input type="hidden" name="r_name" value="You did not enter the muots name.">
</form>
</center>
If that doesn't fix it, on the page with the mail function, paste the results of this..
Well that doesn't make any sense then. If this doesn't fix it I'm not sure I can help you. I'm not sure your statement about Globals being turned on is correct.
$body = "Someone wants us to hunt down and write a report on a muot that goes by the name <font size=3 color=red><b> " . $_POST['name'] . " </b></font>";