I can't get variables from one page to another...
I checked with GET method and they do pass, but PHP doesn't recognize them...
Try here:
http://www.novastella.net/yaron/en/index.html
As you can see it doesn't work.
This is my code for the PHP page:
<html>
<head>
<title>שיח ושיג</title>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=windows-1255">
<style>
body{ margin:10; font-family:tahoma;}
a {font-decoration:underline;}
a:HOVER {font-decoration:none;}
a.lang {font-decoration:underline; color:white;}
a.lang:HOVER {font-decoration:none; color:white;}
.menu {background-color:#4D79FF; text-align:center;}
</style>
</head>
<body bgcolor="#66B3FF" dir="ltr">
<?
$name = $_POST['name'];
$surname = $_POST['surname'];
$city = $_POST['city'];
$mail = $_POST['mail'];
$phone = $_POST['phone'];
$to = "xxx@gmail.com";
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=windows-1255' . "\r\n";
// Additional headers
$headers .= "To: <$to>" . "\r\n";
$headers .= "From: $name $surname <$mail>" . "\r\n";
$subject = "Registration form for $name $surname";
$comment = "Registration form:". "\r\n";
$comment .= "Name: $name" . "\r\n";
$comment .= "Surname: $surname" . "\r\n";
$comment .= "City: $city" . "\r\n";
$comment .= "Phone: $phone" . "\r\n";
$comment .= "E-mail: $mail" . "\r\n";
// Mail it
if (mail($to, $subject, $comment, $headers)){
echo("Message successfuly sent");
echo("<BR> $subject <BR> $comment ");
}
?>
</body>
</html>