Jump to content

$_POST not printing dropdown values


$php_mysql$

Recommended Posts

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

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.