<?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 ?
eror
- SpiritWebb
- Posts: 3107
- Joined: Sun Jul 12, 2009 11:25 pm
Re: eror
You need to change ( in:
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)
(
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)
{
- SpiritWebb
- Posts: 3107
- Joined: Sun Jul 12, 2009 11:25 pm
Re: eror
You are missing the ;
Old code
Should be:
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)
{
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)
{
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: eror
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
The indelible lord of tl;dr