anthony19 Posted January 24, 2013 Share Posted January 24, 2013 Can somebody help me write the code for this? <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>Is this how you get your kicks?</title> </head> <body> <form action="class.php" method="get"> <fieldset> <legend>Sex</legend> <div> <input type="radio" name="sex" value="female" id="female" checked="checked" /> <label for="female">Female</label> <input type="radio" name="sex" value="male" id="male" /> <label for="male">Male</label> </div> </fieldset> <fieldset> <legend>Weight</legend> <div> <label for="weight">Weight (kg): </label> <input type="text" name="weight" value="0.0" id="weight" size="6" maxlength="6" /> </div> </fieldset> <fieldset> <div id="buttons"> <input type="submit" value="Shi Jak" /> <input type="reset" value="Hae san" /> </div> </fieldset> </form> </body> </html> I must output hi/her Taekwando class based on this table: Men women weight limit weight limit kg unlimited-heavyweight kg unlimited-heavyweight 80-welterweight 67-welterweight 68-featherweight 57-featherweight 58-flyweight 49-flyweight associative arrays and foreach loops must be used Quote Link to comment Share on other sites More sharing options...
Jessica Posted January 24, 2013 Share Posted January 24, 2013 (edited) This forum is for help with code you wrote. If you need it written for you, post in the freelance forum. Edit: Also, we don't do homework. Edited January 24, 2013 by Jessica Quote Link to comment Share on other sites More sharing options...
White_Lily Posted January 24, 2013 Share Posted January 24, 2013 (edited) Can I just ask, why does it HAVE TO use associative arrays and foreach loops? Edited January 24, 2013 by White_Lily Quote Link to comment Share on other sites More sharing options...
Jessica Posted January 24, 2013 Share Posted January 24, 2013 Can I just ask, why does it HAVE TO use associative arrays and foreach loops? Because it's his homework. 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.