Hi,
I copied serveral contact form and tested it,
I have never received the message, sobody can help me to find out the problem ?
thank you
it is a script:
index.php
<form id="form" action="panier.php" method="post">
<table width="360" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="74">Name: </td>
<td width="286"><input type="text" name="nom" id="nom"></td>
</tr>
<tr>
<td>E-Mail:</td>
<td><label>
<input name="email" type="text" id="email" size="35" >
</label></td>
</tr>
<tr>
<td>Message:</td>
<td><textarea name="message" cols="40" rows="10" id="message" label="Message:"></textarea></td>
</tr>
<tr>
<td>Anti spam:</td>
<td>9+1=
<label>
<input name="secu" type="text" id="secu" size="6">
</label></td>
</tr>
<tr>
<td> </td>
<td><input name="send" type="submit" value="send"></td>
</tr>
</table>
</form>
panier.php
<?php
$nom = $_POST['nom'];
$email = $_POST['email'];
$message = $_POST['message'];
$secu = $_POST['secu'];
$to = "abc******.fr";
$sujet = "Client Message";
if ($secu=="10") {
mail($to, $sujet);
header("Location:index.php?s=1");
}
else {
header("Location:index.php?s=2");
}
I copied serveral contact form and tested it,
I have never received the message, sobody can help me to find out the problem ?
thank you
it is a script:
index.php
<form id="form" action="panier.php" method="post">
<table width="360" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="74">Name: </td>
<td width="286"><input type="text" name="nom" id="nom"></td>
</tr>
<tr>
<td>E-Mail:</td>
<td><label>
<input name="email" type="text" id="email" size="35" >
</label></td>
</tr>
<tr>
<td>Message:</td>
<td><textarea name="message" cols="40" rows="10" id="message" label="Message:"></textarea></td>
</tr>
<tr>
<td>Anti spam:</td>
<td>9+1=
<label>
<input name="secu" type="text" id="secu" size="6">
</label></td>
</tr>
<tr>
<td> </td>
<td><input name="send" type="submit" value="send"></td>
</tr>
</table>
</form>
panier.php
<?php
$nom = $_POST['nom'];
$email = $_POST['email'];
$message = $_POST['message'];
$secu = $_POST['secu'];
$to = "abc******.fr";
$sujet = "Client Message";
if ($secu=="10") {
mail($to, $sujet);
header("Location:index.php?s=1");
}
else {
header("Location:index.php?s=2");
}
Comment