$php_mysql$ Posted August 11, 2011 Share Posted August 11, 2011 whay is it that $_POST results from dropdown list not showing value? my search.php if(isset($_POST['searchquery'])) { $searchquery = clean($_POST['searchquery']); print_r($searchquery); } the form <form action="search_ads.php" name="search" method="post"> Search: <input type="text" name="searchquery" /> Category: <select name="category" size="1"> <option value="Events">Events</option> </select> State: <select name="state" size="1"> <option value="South_Carolina">South_Carolina</option> </select> <input type="submit" name="search" value="Search"/> </form> and my form Link to comment https://forums.phpfreaks.com/topic/244476-_post-not-printing-dropdown-values/ Share on other sites More sharing options...
WebStyles Posted August 11, 2011 Share Posted August 11, 2011 Because you seem to only be grabing 'searchquery' echo '<br />'.$_POST['searchquery']; echo '<br />'.$_POST['category'] echo '<br />'.$_POST['state']; Link to comment https://forums.phpfreaks.com/topic/244476-_post-not-printing-dropdown-values/#findComment-1255721 Share on other sites More sharing options...
$php_mysql$ Posted August 11, 2011 Author Share Posted August 11, 2011 sorted thanks Link to comment https://forums.phpfreaks.com/topic/244476-_post-not-printing-dropdown-values/#findComment-1255782 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.