cemzafer Posted December 12, 2006 Share Posted December 12, 2006 hi all,I have an HTML select wıth options, so my question is,how can i show the selected item in php?Thanks. Link to comment https://forums.phpfreaks.com/topic/30326-select-html-tag-and-php/ Share on other sites More sharing options...
onlyican Posted December 12, 2006 Share Posted December 12, 2006 so you have a form with the following<select name='myselect'><option value='a'>Option A</option><option value='b'>Option B</option></select>This is the same as all form fieldsIf your using Form Method='post' then you use$_POST["myselect"];ElseYou use$_GET["myselect"]; Link to comment https://forums.phpfreaks.com/topic/30326-select-html-tag-and-php/#findComment-139548 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.