Hi.
I’m getting the following error:
[b]
Parse error: parse error, unexpected ‘,’ in /home2/racingri/public_html/game/register.php on line 33
I searched, but don’t even have a ‘,’ in the code. So I’m not sure what happened. ?
Here is the code:
[code=php]<?php
// Include init file
include ‘init.php’;
if (!isset($_POST[‘submit’]))
{
// Show the form
include ‘register_form.inc.php’;
exit;
}
else
{
// Check if any of the fields are missing
if (empty($_POST[‘username’]) || empty($_POST[‘password’]) || empty($_POST[‘confirmpass’]) || empty($_POST[‘firstname’]) || empty($_POST[‘lastname’]) || empty($_POST[‘address’]) || empty($_POST[‘city’]) || empty($_POST[‘state’]) || empty($_POST[‘country’]))
{
// Reshow the form with an error
$reg_error = ‘One or more fields missing’;
include ‘register_form.inc.php’;
exit;
}
// Check if the passwords match
if ($_POST[‘password’] != $_POST[‘confirmpass’])
{
// Reshow the form with an error
$reg_error = ‘Your passwords do not match’;
include ‘register_form.inc.php’;
exit;
}
// Everything is ok, register
user_register ($_POST[‘username’], $_POST[‘password’] ($_POST[‘firstname’], ($_POST[‘lastname’], ($_POST[‘address’], ($_POST[‘city’], ($_POST[‘state’], ($_POST[‘country’]);
echo ‘Thank you for registering on our site, <a href=”index.php”>click here</a> to go back.’;
}
?>
Any help will greatly be appreciated. Thanks! ?