Jump to content

Confused


emery

Recommended Posts

I am getting this error

Parse error: syntax error, unexpected '}', expecting ',' or ';' in /home/a6658518/public_html/view/register.php on line 83

:wtf:

<html>
<body>
<pre>
<?php
$Fname = $_POST["Fname"];
$Lname = $_POST["Lname"];
$mail = $_POST["mail"];
if (!isset($_POST['submit'])) { 
?>

<form method="post" action="<?php echo $PHP_SELF;?>">
First Name:<input type="text" size="12" maxlength="12" name="Fname"><br />
Last Name:<input type="text" size="12" maxlength="36" name="Lname"><br />
Email:<input type="text" size="12" maxlength="36" name="mail"><br />
This must be a valid email!
<input type="submit" value="submit" name="submit">
</form>
<?
} else {
if (isset($_COOKIE["dsc"])) { echo "Whoops! You already got a serial number!" } else 
{
$myFile = $Fname;
$myFile .= ".vl";
$myFile = $loca .= myFile$;
if (file_exists($myFile)) {
echo "We seem to have another serial key with that name already made!
Please email emery.cairns@gmail.com if you think this is an error";
} else {
$fh = fopen($myFile, 'w') or die("Whoops! I had an error, please contact my owner at emery.cairns@gmail.com, code: file unwriteable");
$stringData = getSerial();
fwrite($fh, $stringData);
fclose($fh);
echo "Hello, ".$Fname." ".$Lname.".<br />";
echo "Thanks for registering with us, the email with your serial key and name will show up in your inbox shortly!.<br />";
echo "Please make sure it does not end up in your junk mail!";
$expire=time()+60*60*24*60;
setcookie("dsc", "Serial given within 60 days", $expire);
$to = $mail;
$serial = getSerial();
$subject = "Dhpos Self Checkout";
$message = "Hello!, your serial number for D.S.C is 
{$serial} 
and your name is 
{$Fname}

Thanks for downloading DSC, we hope you enjoy the program.

You recived this message because you requested a serial number from http://dhposselfcheckout.tk, if you did not, please disregard this message.";
$from = "emery.cairns@gmail.com";
$headers = "From:" . $from;
if  ( $to == "emery.cairns@gmail.com" ) {
echo "mail stop";
} else {
mail($to,$subject,$message,$headers);
}
}
}
}
?>

<br /> 
</pre>
</body>

</html>

Link to comment
Share on other sites

  • 4 months later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.