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
https://forums.phpfreaks.com/topic/273585-arrays/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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