Grafische beginner |
|
Hey
ik heb dit scripie geschreven:
<?php
$your_email = "an_alien@eugamer.com";
if($_POST['submit'])
{
$subject = $_POST['subject'];
$message = $_POST['message'];
$name = $_POST['name'];
$email = $_POST['email'];
}
elseif(!empty($subject))
{
echo("You did no fill in a subject!");
}
elseif(!empty($message))
{
echo("You did not fill in a message!");
}
elseif(!empty($name))
{
echo("You did not fill in your name!");
}
elseif(!empty($email))
{
echo("You did not fill in your email");
}
else
{
mail("$your_email","$subject","$message","\n verzonden door: $name \n zijn email: $email");
mail("$email","BattlefieldNet","This auto message was send by www.battlefieldnet.com. We will respond on your email as soon as possible.");
echo("Thank you, your message has been send.");
}
?>
<?php $your_email = "an_alien@eugamer.com"; if($_POST['submit']) { $subject = $_POST['subject']; $message = $_POST['message']; $name = $_POST['name']; $email = $_POST['email']; } { echo("You did no fill in a subject!"); } { echo("You did not fill in a message!"); } { echo("You did not fill in your name!"); } { echo("You did not fill in your email"); } else { mail("$your_email","$subject","$message","\n verzonden door: $name \n zijn email: $email"); mail("$email","BattlefieldNet","This auto message was send by www.battlefieldnet.com. We will respond on your email as soon as possible."); echo("Thank you, your message has been send."); } ?>
met bijhoorende form natuurlijk, maar dat werkt allemaal.
Maar zodra ik ga testen, stuur hij direct een mailtje nadat de pagina geladen is. hij wacht dus niet op de IF, dus geen mogelijkheid om wat in de form te tikken.
wie kan me ff helpen.
met vriendelijke groet, AN ALIEn
|