View previous topic :: View next topic |
Author |
Message |
26 Master Cheater Reputation: 0
Joined: 28 Feb 2009 Posts: 375 Location: Your closet
|
Posted: Sun Apr 18, 2010 10:48 am Post subject: Php help with syntax error |
|
|
Code: | <?php
////////////////////
// Process Reg //
//////////////////
//* Start Vars *//
$username = $_POST['username'];
$password = $_POST['password'];
$email = $_POST['email'];
$name = $_POST['name'];
//* End Vars *//
//* Start Process *//
file_put_contents('../login/'.$username.'type="text;", 'Done');
file_put_contents('../login/'.$password.'type="password;", 'Done');
file_put_contents('../login/'.$name.'type="text;", 'Done');
file_put_contents('../login/'.$email.'type="text;", 'Done');
//* End Process *//
//* Start Script *//
echo 'Thanks for registering for '.$websitename.'.<br>';
echo 'Click <a href="../default.HTML">here</a> to go back';
//* End Script *//
?> |
That's my code but I get this syntax error: Parse error: syntax error, unexpected T_STRING
I get that error on line 14 and it seems my code is good any help :3
|
|
Back to top |
|
|
Cheat Engine User Something epic Reputation: 60
Joined: 22 Jun 2007 Posts: 2071
|
Posted: Sun Apr 18, 2010 12:37 pm Post subject: Re: Php help with syntax error |
|
|
Code: | <?php
////////////////////
// Process Reg //
//////////////////
//* Start Vars *//
$username = $_POST['username'];
$password = $_POST['password'];
$email = $_POST['email'];
$name = $_POST['name'];
//* End Vars *//
//* Start Process *//
file_put_contents('../login/'.$username.'type="text;"', 'Done');
file_put_contents('../login/'.$password.'type="password;"', 'Done');
file_put_contents('../login/'.$name.'type="text;"', 'Done');
file_put_contents('../login/'.$email.'type="text;"', 'Done');
//* End Process *//
//* Start Script *//
echo 'Thanks for registering for '.$websitename.'<br>';
echo 'Click <a href="../default.HTML">here</a> to go back';
//* End Script *//
?> | Be sure to close your 's
|
|
Back to top |
|
|
Cryoma Member of the Year Reputation: 198
Joined: 14 Jan 2009 Posts: 1819
|
Posted: Sun Apr 18, 2010 12:44 pm Post subject: |
|
|
Perhaps the directory is wrong?
|
|
Back to top |
|
|
Up2Admin I'm a spammer Reputation: 126
Joined: 17 Oct 2007 Posts: 6546 Location: Texas
|
Posted: Sun Apr 18, 2010 4:13 pm Post subject: |
|
|
Holland spotted the only error I can find. If you run into any other trouble, let us know.
_________________
|
|
Back to top |
|
|
CrisNMP Fun Supervisor Reputation: 16
Joined: 11 Apr 2007 Posts: 4649
|
Posted: Sun Apr 18, 2010 5:31 pm Post subject: |
|
|
Stone wrote: | Perhaps the directory is wrong? |
_________________
BENBENBENBENBENBENBENBEN |
|
Back to top |
|
|
Cryoma Member of the Year Reputation: 198
Joined: 14 Jan 2009 Posts: 1819
|
Posted: Sun Apr 18, 2010 6:15 pm Post subject: |
|
|
CrisNMP wrote: | Stone wrote: | Perhaps the directory is wrong? |
|
Loading from up a level when there is no high level returns a syntax error.
Just saying.
But it looks like Holly spotted a missing '.
|
|
Back to top |
|
|
|