Nieuw lid |
|
wat is er fout aan dit script?
als ik m verstuur krijg ik alleen in mn inbox te zien:
name=
mail=
title=
message=
<?php
if(isset($_GET['send']) ) {
$mymail = 'evul.sp@gmail.com';
$_GET['name'] = $name;
$_GET['mail'] = $mail;
$_GET['title'] = $title;
$_GET['message'] = $message;
$message1 = "name= " . $name . "\nmail= " . $mail . "\ntitle= " . $title . "\nmessage= " . $message;
mail($mymail, 'Contact Form Send', $message1);
echo "Mail Sended!";
}
else
{
?><table align="left"><tr><td>
<form method="get">
Your name:</td><td><input type="text" name="name" /></td></tr>
<tr><td>Your e-mail:</td><td><input type="text" name="mail" /></td></tr>
<tr><td>Title:</td><td><input type="text" name="title" /></td></tr>
<tr><td>Your message:</td><td><input type="text" name="message" cols="40" rows="8"></textarea></td></td>
<tr><td><input type="submit" name="send" value="send" />
</form></td></tr></table>
<?php
}
?>
<?php if(isset($_GET['send']) ) { $mymail = 'evul.sp@gmail.com'; $_GET['name'] = $name; $_GET['mail'] = $mail; $_GET['title'] = $title; $_GET['message'] = $message; $message1 = "name= " . $name . "\nmail= " . $mail . "\ntitle= " . $title . "\nmessage= " . $message; mail($mymail, 'Contact Form Send', $message1); } else { ?><table align="left"><tr><td> <form method="get"> Your name:</td><td><input type="text" name="name" /></td></tr> <tr><td>Your e-mail:</td><td><input type="text" name="mail" /></td></tr> <tr><td>Title:</td><td><input type="text" name="title" /></td></tr> <tr><td>Your message:</td><td><input type="text" name="message" cols="40" rows="8"></textarea></td></td> <tr><td><input type="submit" name="send" value="send" /> </form></td></tr></table> <?php } ?>
wat is er fout aan mn script. alvast bedankt voor t antwoord
|