Chuckster Posted July 14, 2010 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
furn355 Posted July 14, 2010 Posted July 14, 2010 Need to see more code, and dont put it all on one line. Quote
Paddy Posted July 14, 2010 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
Paddy Posted July 14, 2010 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
Chuckster Posted July 15, 2010 Author 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
Zero-Affect Posted July 15, 2010 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
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.