Nieuw lid |
|
<body background="stripesbg.gif">
<table width="98%" border="0" cellspacing="0" >
<tr>
<td width="18%" height="295" valign="top">
<div align="center">
<table width="152" border="0" align="center" cellspacing="0" class="tabel">
<tr >
<td width="151" height="26" align="center" background="images/tabletop.jpg" ><strong><font size="-1">::Q-Nav::</font></strong></td>
</tr>
<tr>
<td height="28" align="center" background="images/sidesqlink.gif" bgcolor="#2E434C" class="qnav">
<br>
<table width="142" border="0" cellspacing="0" cellpadding="0" class="tabel">
<tr>
<td width="142"> <p><font size="-1">::Contact::<br>
::Information::<br>
::Offer::</font></p>
</td>
</tr>
</table></td>
</tr>
<tr>
<td height="20" align="center" background="images/tabelbottom.gif" bgcolor="#2E434C"><font size="-2"> </font></td>
</tr>
</table>
<br>
</div></td>
<td width="11%" align="center" valign="top"> </td>
<td width="71%" align="center" valign="top"> <table width="550" border="0" cellspacing="0" >
<tr>
<td width="548" height="27" background="images/contenttop.jpg">
<div align="center"><strong><font size="-1">::About Me::</font></strong></div></td>
</tr>
<tr>
<td height="319" background="images/sides.gif" bgcolor="#2E434C" class="tabel"><br>
<br>
<?php
$emailad = "contact@j-design.be";
$naam = $_POST['name'];
$email = $_POST['email'];
$subj = $_POST['subject'];
$mess = $_POST['msg'];
$btn = $_POST['send'];
$check_email = "/^([a-z0-9_-]+.)*?[a-z0-9_-]+@([a-z0-9-_]{2,}).[a-z0-9-_]*(.[a-z0-9- _]{2,})*$/i";
if($btn)
{
if(empty($naam) || empty($subj) || empty($mess))
{
echo "You must fill in ALL fields!!<br> you are being redirected to the mailform.";
echo "<meta http-equiv=\"Refresh\" content=\"3;url=contact.php\">";
}
elseif(!preg_match($check_email,$email))
{
echo "Please enter a valid emailadress!<br> you are being redirected to the mailform.";
echo "<meta http-equiv=\"Refresh\" content=\"3;url=contact.php\">";
}
else
{
mail($emailad,$subj,"Afzender: $name \n Email: $email \n Onderwerp: $subj \n IP:".$_SERVER['REMOTE_ADDR']. "\n $mess \n From: $naam \n");
echo "Your email was send, please notice that only important subjects will get an answer, others will be ignored or even get banned.";
}
}
else
{
?>
<form action="" method="post">
Your name:<br>
<input type="text" name="name" size="40">
<br>
Your email:<br>
<input type="text" name="email" size="40">
<br>
Subject:<br>
<input type="text" name"subject" size="40"><br>
Message:<br>
<textarea name="msg" cols="60" rows="5"></textarea>
<br><br>
<input type="submit" name="send" value="send">
</form>
<?php
}
?>
</td>
</tr>
<tr>
<td height="20" background="images/contentbottom.gif" bgcolor="#2E434C"><font size="-2">
</font></td>
</tr>
</table>
<div align="right"></div></td>
</tr>
</table>
<div align="center"></div>
</body>
<body background="stripesbg.gif"> <table width="98%" border="0" cellspacing="0" > <tr> <td width="18%" height="295" valign="top"> <div align="center"> <table width="152" border="0" align="center" cellspacing="0" class="tabel"> <tr > <td width="151" height="26" align="center" background="images/tabletop.jpg" ><strong><font size="-1">::Q-Nav::</font></strong></td> </tr> <tr> <td height="28" align="center" background="images/sidesqlink.gif" bgcolor="#2E434C" class="qnav"> <br> <table width="142" border="0" cellspacing="0" cellpadding="0" class="tabel"> <tr> <td width="142"> <p><font size="-1">::Contact::<br> ::Information::<br> ::Offer::</font></p> </td> </tr> </table></td> </tr> <tr> <td height="20" align="center" background="images/tabelbottom.gif" bgcolor="#2E434C"><font size="-2"> </font></td> </tr> </table> <br> </div></td> <td width="11%" align="center" valign="top"> </td> <td width="71%" align="center" valign="top"> <table width="550" border="0" cellspacing="0" > <tr> <td width="548" height="27" background="images/contenttop.jpg"> <div align="center"><strong><font size="-1">::About Me::</font></strong></div></td> </tr> <tr> <td height="319" background="images/sides.gif" bgcolor="#2E434C" class="tabel"><br> <br> <?php $emailad = "contact@j-design.be"; $naam = $_POST['name']; $email = $_POST['email']; $subj = $_POST['subject']; $mess = $_POST['msg']; $btn = $_POST['send']; $check_email = "/^([a-z0-9_-]+.)*?[a-z0-9_-]+@([a-z0-9-_]{2,}).[a-z0-9-_]*(.[a-z0-9- _]{2,})*$/i"; if($btn) { { echo "You must fill in ALL fields!!<br> you are being redirected to the mailform."; echo "<meta http-equiv=\"Refresh\" content=\"3;url=contact.php\">"; } { echo "Please enter a valid emailadress!<br> you are being redirected to the mailform."; echo "<meta http-equiv=\"Refresh\" content=\"3;url=contact.php\">"; } else { mail($emailad,$subj,"Afzender: $name \n Email: $email \n Onderwerp: $subj \n IP:".$_SERVER['REMOTE_ADDR']. "\n $mess \n From: $naam \n"); echo "Your email was send, please notice that only important subjects will get an answer, others will be ignored or even get banned."; } } else { ?> <form action="" method="post"> Your name:<br> <input type="text" name="name" size="40"> <br> Your email:<br> <input type="text" name="email" size="40"> <br> Subject:<br> <input type="text" name"subject" size="40"><br> Message:<br> <textarea name="msg" cols="60" rows="5"></textarea> <br><br> <input type="submit" name="send" value="send"> </form> <?php } ?> </td> </tr> <tr> <td height="20" background="images/contentbottom.gif" bgcolor="#2E434C"><font size="-2"> </font></td> </tr> </table> <div align="right"></div></td> </tr> </table> <div align="center"></div> </body>
nuja het lijkt me erop dat ik nergens een fout erin heb steken... maar toch krijg ik wanneer ik ook alle velden heb ingevuld mijn "foutmelding" (You must fill in ALL fields") te zien.
Iemand die ziet waar het eventueel fout gaat?
Greetz
J.
|