sorry for the title, but i have a form that iwan to display a message after the person clicked submit, but without quiting the page.
here is my code, can u tell me what’s wrong ?
<?php
if(isset($_POST[‘Envoyer’]))
{
echo “NOM : “.$_REQUEST[‘nom’].”<br>”;
echo “COURRIEL : “.$_REQUEST[‘courriel’].”<br>”;
echo “SUJET : “.$_REQUEST[‘sujet’].”<br>”;
echo “MESSAGE : “.$_REQUEST[‘message’].”<br>”;
echo “Merci<br>”;
}
?>
<form method=“post” action=“<?php echo $_SERVER[‘PHP_SELF’];?>”>
<table>
<tr>
<td>Nom</td>
<td><input type = “text”, name = “nom” id = “nom”></td>
</tr>
<tr>
<td>Adresse courriel</td>
<td><input type = “text”, name = “courriel” id = “courriel”></td>
</tr>
<tr>
<td>Sujet</td>
<td><input type = “text”, name = “sujet” id = “sujet”></td>
</tr>
<tr>
<td>Message</td>
<td><textarea rows = “10” cols = “30”, name =“message” id “message”></textarea></td>
</tr>
<tr>
<td><input type = “submit”, value = “Envoyer” name =“Envoyer”</td>
</tr>
</table>
<form>