blah-de-blah
August 16th, 2003, 09:44 AM
I know there are lotsa form quesitons around, as well as tutes. But i wanted to do it my way (i'm doing html/php form btw), beceause there were some bits i didn't understand in jubba's html/php tute. I could also learn by my mistakes by doing everything myself...
ok so heres the code i have in my HTML page.
<body>
<form action="sendEmail.php" method="post" name="form1">
<input type="text" value="Entertexthere" name="input1">
<textarea cols=25 rows=8>Entertext here</textarea>
<input type="submit" value="submit" name="submit1">
</form>
</body>
ANd heres the code for my php page:
<?php
$Subject = "Mail form";
$toMail = "whatever@hotmail.com";
if (submit1) {
mail($toMail, $Subject, $input1)
}
?>
Look ok to you? well i get an error after i click the submit button which says theres an error on LINE 14 on my php page. And the only thing on line14 is:
}
Only a curly bracket :-\ Do any of you guys know whats wrong? thanks!!
ok so heres the code i have in my HTML page.
<body>
<form action="sendEmail.php" method="post" name="form1">
<input type="text" value="Entertexthere" name="input1">
<textarea cols=25 rows=8>Entertext here</textarea>
<input type="submit" value="submit" name="submit1">
</form>
</body>
ANd heres the code for my php page:
<?php
$Subject = "Mail form";
$toMail = "whatever@hotmail.com";
if (submit1) {
mail($toMail, $Subject, $input1)
}
?>
Look ok to you? well i get an error after i click the submit button which says theres an error on LINE 14 on my php page. And the only thing on line14 is:
}
Only a curly bracket :-\ Do any of you guys know whats wrong? thanks!!