hello
First sorry for my english writting, i dont speak english very well.

i have a problem to send my POST variables from a form to my php page.
this is my code:

in contact.htm:

<h3>Contact</h3>
<form method="post" action="" onsubmit="return verif_champ();">
<div id="test">Nom:<INPUT id="nom" type=text name="nom" value=""></
div>
<div id="test">Pr&eacute;nom:<INPUT id="prenom" type=text
name="prenom"></div>
<div id="test">Adresse mail:<INPUT id="mail" type=text name="mail"></
div>
<div id="test">Votre message:<textarea id="message" name="message"
cols="40" rows="6"></textarea></div><br>
<input type="submit" name="lien" value="Envoyer !" >
</form>

in contact.php:
<?php
if(isset($_POST['nom'])){
echo $_POST['nom'];
$prenom=$_POST['prenom'];
$nom=$_POST['nom'];
$mail=$_POST['mail'];
$message=$_POST['message'];
mail('[EMAIL PROTECTED]', 'mail de i-faraj.com',$message);
}?>


the function verif_champ():
 function verif_champ(){
    $.post('includes/contact.php', { nom:"nom", prenom:"prenom",
message:"message", mail:"mail" } );

    };




the problem is that there is any result of my POST request i dont know
why. Help me plz if you can.

friendly

Reply via email to