Jump to content

Getting form select value


Scavenger

Recommended Posts

If you have a form as follows:

 

<form>
  <select name="dropdown">
    <option value="1">Select 1</option>
  </select>
</form>

 

How can you get php to read the value of the selected option ("1") or write its own value (e.g. $sel = 1)?

Is this possible to do when the page is loading for the first time?

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/86751-getting-form-select-value/
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.