PHP beginner |
|
Wat krijg je hierbij als waarden?
<?PHP
if ( isset($_POST) ) {
echo "Waarde Q1: ";
echo $_POST['q[1]'];
echo "<BR>Waarde Q6: ";
echo $_POST['q[6]'];
echo "<BR>Waarde Q3: ";
echo $_POST['q[3]'];
echo "<BR>Waarde Q4: ";
echo $_POST['q[4]'];
echo "<BR>";
if((empty($_POST['q[1]'])) || (empty($_POST['q[6]'])) || (empty($_POST['q[3]'])) || (empty($_POST['q[4]'])))
{
include "nietaangemeld.html";
}
else
{
$to = "marc@tijdgat.nl";
$subject = "Aanmelding wedstrijd JRWB";
$extra = "From: $email";
$mess = "\n\nNaam: ".$q[1]."\nDeelname: ".$q[6]."\nVoorkeur: ".$q[3]."\n\nEten: ".$q[4]. "\n\nCommentaar: ".$q[5]."" ;
mail ($to, $subject, $extra, $mess);
include "bedankt.html";
}
}
?>
<?PHP if((empty($_POST['q[1]'])) || (empty($_POST['q[6]'])) || (empty($_POST['q[3]'])) || (empty($_POST['q[4]']))) { include "nietaangemeld.html"; } else { $to = "marc@tijdgat.nl"; $subject = "Aanmelding wedstrijd JRWB"; $extra = "From: $email"; $mess = "\n\nNaam: ".$q[1]."\nDeelname: ".$q[6]."\nVoorkeur: ".$q[3]."\n\nEten: ".$q[4]. "\n\nCommentaar: ".$q[5]."" ; mail ($to, $subject, $extra, $mess); include "bedankt.html"; } } ?>
|