PHP interesse |
|
Veranderen in dit:
<?php
$your_email = "an_alien@eugamer.com";
if($_POST['submit'])
{
$subject = "$_POST['subject']";
$message = "$_POST['message']";
$name = "$_POST['name']";
$email = "$_post['email']"
mail("$your_email","$subject","$message","name: $name/n Email: $email");
echo "bericht verzonden";
//}
?>
<form action="eumailer.php">
<table width="0%" border="0">
<tr>
<td>Your name/nick:</td>
<td><input type="text" name="name"></td>
</tr>
<tr>
<td>Your email:</td>
<td><input type="text" name="email"></td>
</tr>
<tr>
<td>Subject:</td>
<td><input type="text" name="subject"></td>
</tr>
</table>
<textarea rows="10" cols="30" ></textarea><br>
<input type="submit" name="submit"><input type="reset" name="reset">
</form>
<?php $your_email = "an_alien@eugamer.com"; if($_POST['submit']) { $subject = "$_POST['subject']"; $message = "$_POST['message']"; $name = "$_POST['name']"; $email = "$_post['email']" mail("$your_email","$subject","$message","name: $name/n Email: $email"); echo "bericht verzonden"; //} ?> <form action="eumailer.php"> <table width="0%" border="0"> <tr> <td>Your name/nick:</td> <td><input type="text" name="name"></td> </tr> <tr> <td>Your email:</td> <td><input type="text" name="email"></td> </tr> <tr> <td>Subject:</td> <td><input type="text" name="subject"></td> </tr> </table> <textarea rows="10" cols="30" ></textarea><br> <input type="submit" name="submit"><input type="reset" name="reset"> </form>
Je had bij een } dit: // ervoor gezet, waardoor het niet uitgevoerd werd... |