Hi,
I receive this error message:
"Parse error: parse error, unexpected T_VARIABLE in /mnt/host-users/m/a/d/mado/mail.php on line 28"
Here is the script:
<html>
<head>
<title>PHP Mailer</title>
</head>
<body>
<?php
$i=0;
if (!is_array($HTTP_POST_VARS))
return;
reset($HTTP_POST_VARS);
while(list($key, $val) = each($HTTP_POST_VARS)) {
$GLOBALS[$key] = $val;
$val=stripslashes($val);
echo "<b>$key</b> = $val<br>";
$message = $message."$key = $val\n";
}
$message= "$message";
require("class.smtp.php");
$smtp=new smtp();
$smtp->host_name = "localhost";
$smtp->localhost = "host.sk";
$from = "md@stonline.sk";
$to = "jzn1@yahoo.com"
$subject = "Your message";
$text = "$message";
$smtp->SendMessage( $from, array( $to ), array( "From: $from", "To: $to", "Subject: $subject" ), $text );
echo "<p>OK</p>";
?>
</body>
</html>
Any idea what is wrong, please?
I receive this error message:
"Parse error: parse error, unexpected T_VARIABLE in /mnt/host-users/m/a/d/mado/mail.php on line 28"
Here is the script:
<html>
<head>
<title>PHP Mailer</title>
</head>
<body>
<?php
$i=0;
if (!is_array($HTTP_POST_VARS))
return;
reset($HTTP_POST_VARS);
while(list($key, $val) = each($HTTP_POST_VARS)) {
$GLOBALS[$key] = $val;
$val=stripslashes($val);
echo "<b>$key</b> = $val<br>";
$message = $message."$key = $val\n";
}
$message= "$message";
require("class.smtp.php");
$smtp=new smtp();
$smtp->host_name = "localhost";
$smtp->localhost = "host.sk";
$from = "md@stonline.sk";
$to = "jzn1@yahoo.com"
$subject = "Your message";
$text = "$message";
$smtp->SendMessage( $from, array( $to ), array( "From: $from", "To: $to", "Subject: $subject" ), $text );
echo "<p>OK</p>";
?>
</body>
</html>
Any idea what is wrong, please?