Jump to content
MakeWebGames

Recommended Posts

Posted

Hi. Im using an attack system, but when i try to hospilize, mug, and leave them, i get the following error

Parse error: syntax error, unexpected '{', expecting ',' or ';' in /home2/mafiakil/public_html/attack.php on line 131

 

The first line in the following is line 131:

<form action="attackwon.php?ID='{$r['userid']}'. $loser .' method="post"><input type="submit" value="Mug them">
						<form action="attackbeat.php?ID='{$r['userid']}'. $loser .' method="post"><input type="submit" value="Hospitalize them">
						<form action="attacktake.php?ID='{$r['userid']}'. $loser .' method="post"><input type="submit" value="Leave them">

 

Is there something i am missing? or is there an error in one of the codes?

Posted

you are missing a "

 

<form action="attackwon.php?ID='{$r['userid']}'. $loser .' " method="post">
<input type="submit" value="Mug them">

                    	<form action="attackbeat.php?ID='{$r['userid']}'. $loser .' " method="post">
<input type="submit" value="Hospitalize them">

                  	<form action="attacktake.php?ID='{$r['userid']}'. $loser .'  " method="post">
<input type="submit" value="Leave them">

 

Try this and post back if there is an error

Posted

what is the error now? is it the same? more details will help

if its the same error try moving the quotes " like below code

 {$r['userid']}" '. $loser .' 

 

Posted

Parse error: syntax error, unexpected '{', expecting ',' or ';' in /home2/mafiakil/public_html/attack.php on line 131

Could u please go through the 3 lines again? When u posted them, its a different layout of codes from mine.

Posted
		<form action="attackwon.php?ID='.$r['userid'].$loser.'" method="post">
<input type="submit" value="Mug them">
	</form>


	<form action="attackbeat.php?ID='.$r['userid'].$loser.'" method="post">
<input type="submit" value="Hospitalize them">
	</form>


	<form action="attacktake.php?ID='.$r['userid'].$loser.'" method="post">
<input type="submit" value="Leave them">
	</form>

Please... and i mean PLEASE learn how to use html not closing form is just sick...

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.   Paste as plain text instead

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