Jump to content

[SOLVED] Basic Menu Form and Submit Issue


suttercain

Recommended Posts

Hello and hope eveyone is having a good Saturday night.

 

My issue, I have constructed a drop down menu, but when I hit submit, it reloads the HTML page and doesn't go to the php page with the switch statement.

 

Can someone assist?

 

HTML PAGE:

<center><b>---SELECT YOUR HEIGHT---</b></center><br />
<form ="lab_1d.php" method="post">
<select name="select">
  <option value="5ft0">5 Foot 0</option>
  <option value="5ft2">5 Foot 2</option>
  <option value="5ft4">5 Foot 4</option>
  <option value="5ft6">5 Foot 6</option>
  <option value="5ft8">5 Foot 8</option>
  <option value="5ft10">5 Foot 10</option>
</select>
<input type="submit" name="height" value="Submit" />
</form>

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.