Page 1 of 1

eror

Posted: Tue Feb 21, 2012 9:45 pm
by dido4004
<?php
include 'connect.php';
?>

<?php
$player=$_POST['player'];
Parse error: parse error in C:\wamp\www\tutorial\reguser.php on line 15

$password=$_POST['password'];
$pass2=$_POST['pass2'];
$player=strip_tags($player);
$email=$_POST['email'];
$email=strip_tags($email);

if ($email == "")
(
echo "You did't enter the email!<br>"
echo " <A href='register.php'>Go back<a/>";
exit;
)
if ($password==$pass2)
(

where is my wrong ?

Re: eror

Posted: Tue Feb 21, 2012 9:52 pm
by SpiritWebb
You need to change ( in:

Code: Select all

if ($email == "")
(
echo "You did't enter the email!<br>"
echo " <A href='register.php'>Go back<a/>";
exit;
)
if ($password==$pass2)
(
to

Code: Select all

if ($email == "")
{
echo "You did't enter the email!<br>"
echo " <A href='register.php'>Go back<a/>";
exit;
}
if ($password==$pass2)
{

Re: eror

Posted: Tue Feb 21, 2012 9:58 pm
by dido4004
damn now i have Parse error: parse error, expecting `','' or `';'' in C:\wamp\www\tutorial\reguser.php on line 16 :X :@ can u help me ^^ :|

Re: eror

Posted: Tue Feb 21, 2012 10:00 pm
by SpiritWebb
You are missing the ;

Old code

Code: Select all

    if ($email == "")
    {
    echo "You did't enter the email!<br>" // <-- missing the ;
    echo " <A href='register.php'>Go back<a/>";
    exit;
    }
    if ($password==$pass2)
    {

Should be:

Code: Select all

    if ($email == "")
    {
    echo "You did't enter the email!<br>";
    echo " <A href='register.php'>Go back<a/>";
    exit;
    }
    if ($password==$pass2)
    {


Re: eror

Posted: Tue Feb 21, 2012 10:06 pm
by dido4004
ty :)

Re: eror

Posted: Wed Feb 22, 2012 4:13 am
by Jackolantern
Moved to correct section

Re: eror

Posted: Wed Feb 22, 2012 5:41 am
by dido4004
i think this is the correct section because i build MMo browser-based game ^^

Re: eror

Posted: Wed Feb 22, 2012 9:54 am
by Jackolantern
The "MMO Makers" section is for MMO engines, such as RealmCrafter, Hero Engine, etc. Not for PHP MMOs. We have many other sections for those :)