$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 Quote Link to comment 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']; Quote Link to comment Share on other sites More sharing options...
$php_mysql$ Posted August 11, 2011 Author Share Posted August 11, 2011 sorted thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.