Jump to content


Photo

Parse error: syntax error, unexpected T_VARIABLE..I need help!


  • Please log in to reply
2 replies to this topic

#1 //nocomment

//nocomment
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 22 October 2006 - 03:51 PM

Im working on a login system..and im trying to make it so when a user registers, a directory is automatically created for there account and there default page is loaded into that direcoty, but i keep getting this error: "Parse error: syntax error, unexpected T_VARIABLE in /home/hollida/login.php on line 11". Can someone help me find what im doing wrong?? ;D

Heres the register script:

<HTML>
<HEAD>
<TITLE>Login</TITLE>
</HEAD>
<BODY>
<H1><font face="Verdana" size="4" color="#2852A8">Login to Secure Area</font></H1>

<?php
$fp = fopen ('/user/index.html', 'ab')

$dir = rand (0, 4567);

fwrite ($fp);
fclose ($fp);

mkdir ("/user/$dir");

} else {
?>


<FORM METHOD="POST" ACTION="redirect.php">
<P><font face="Verdana" size="2" color="#2852A8"><STRONG>Username:</STRONG><BR>
</font><font color="#2852A8" face="Verdana">
<INPUT TYPE="text" NAME="username" SIZE=25 MAXLENGTH=25></font></p>
<P><font face="Verdana" size="2" color="#2852A8"><STRONG>Password:</STRONG><BR>
</font><font color="#2852A8" face="Verdana">
<INPUT TYPE="password" NAME="password" SIZE=25 MAXLENGTH=25></font></p>
<P><font face="Verdana"><font color="#2852A8">
<input type="checkbox" name="remember" value="Yes"></font><font size="2" color="#2852A8">Remember 
me from this computer</font></font></p>
<P><font color="#2852A8">
<INPUT TYPE="submit" NAME="submit" VALUE="Login" style="font-family: Verdana"></font></P>
</FORM>
<?php
}
?>
</BODY>
</HTML>


#2 High_-_Tek

High_-_Tek
  • Members
  • PipPipPip
  • Advanced Member
  • 72 posts

Posted 22 October 2006 - 05:09 PM

$fp = fopen ('/user/index.html', 'ab')
to
$fp = fopen ('/user/index.html', 'ab');


#3 //nocomment

//nocomment
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 22 October 2006 - 06:06 PM

ok, i changed it, but my free host has Safe Mode on so it wont work... do you know any good free host that have safe mode turned off?? Thanks for the help.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users