Jump to content
MakeWebGames

Attack Problem


Chuckster

Recommended Posts

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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