Chuckster Posted July 14, 2010 Share Posted July 14, 2010 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? Quote Link to comment Share on other sites More sharing options...
furn355 Posted July 14, 2010 Share Posted July 14, 2010 Need to see more code, and dont put it all on one line. Quote Link to comment Share on other sites More sharing options...
Paddy Posted July 14, 2010 Share Posted July 14, 2010 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 Quote Link to comment Share on other sites More sharing options...
Chuckster Posted July 14, 2010 Author Share Posted July 14, 2010 Not worked:( Quote Link to comment Share on other sites More sharing options...
Paddy Posted July 14, 2010 Share Posted July 14, 2010 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 .' Quote Link to comment Share on other sites More sharing options...
Chuckster Posted July 15, 2010 Author Share Posted July 15, 2010 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. Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted July 15, 2010 Share Posted July 15, 2010 <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... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.