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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.