Jump to content

arrays


anthony19

Recommended Posts

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.