I need help i dont know how to make a drop down box that functions like on this website. I dont want it as a form that i have to click submit, can it be down without php or mysql stuff? just basic html?
http://www.zarraffas.com/our-stores
It is currently Sat Dec 02, 2017 4:12 pm Advanced search
<form action="" method="post">
<select name="this_appears_to_php">
<option value="value1">place1</option>
<option value="value2">place2</option>
<option value="value3">place3</option>
</select>
<input type="submit" value="press this button to submit the form" />
</form>
<?php
if ($_SERVER['REQUEST_METHOD']=='GET')
{
//normal requests here
}
else if ($_SERVER['REQUEST_METHOD']=='POST')
{
if (isset($_POST['this_appears_to_php'])) {echo 'The value of your choice was '.$_POST['this_appears_to_php'].'.';}
}
?>
Users browsing this forum: No registered users and 1 guest