Web Hosting - Myspace Layouts - Wordpress Themes - Record Internet Radio with Tags - Advertising Agency Software

PDA

View Full Version : Form Script


genius
Feb 9th 2009, 12:41 am
Hello,

I tried to make a form with the following script

<form action="contact.php" mehod="post">
<table width="75%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50%">
<h5>
<p><label for="name">Name </label></p>
</h5>
<p><label for="name">
<input name="name" id="name" />
</label></p>
<input type="submit" name="submit">
</form>


Then I have another script that something like :

<?PHP $name=$_REQUEST['name'];
$adress=$_REQUEST['adress'];
$mail=$_REQUEST['mail'];
$msg=$_REQUEST['msg'];
#trimite mail-ul
mail($to,$re,$msg);
$to = "mail";
$re = "subject";
$msg = "Nume: $nume\n Subiect: $subject\n Email: $mail\n Comentarii: $mesaj\n\n IP : $REMOTE_ADDR";
?>

I doesn't seem to work , do you have another ideea about another script ?

vipinc007
Feb 9th 2009, 2:57 am
Put the line "mail($to,$re,$msg);" at the end.
and please provide valid email to the "$to" variable.

Also please see that the variable that u use are valid or defined.