Jump to content

[SOLVED] unexpected $end


Asday

Recommended Posts

How do I fix this message:

 

Parse error: syntax error, unexpected $end in C:\xampp\htdocs\index.php on line 50

 

For this code:

 

...

<br /><br /><form action="index.php" method="post">
Rand-: <input type="checkbox" name="rand-" checked="checked" /><br />
Date-: <input type="checkbox" name="date-" checked="checked" /><br />
For--: <input type="checkbox" name="for--" checked="checked" /><br />
Count: <input type="checkbox" name="count" checked="checked" /><br />
New--: <input type="checkbox" name="new--" checked="checked" /><br />
<input type="submit" value="Clicky!" />
</form> // line 50

 

(I know the code's probably wrong, I've been messing around with it, to try and fix the error, but I have no idea)

 

Any help would be greatly appreciated.  Thanks.

 

EDIT:  The code is an html block in a php script.  line 50 is the end.

 

EDIT:  Haha, nevermind, I forgot to close an if statement up near the top of the script.  Sorry.

Link to comment
https://forums.phpfreaks.com/topic/60516-solved-unexpected-end/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.