
May 10th, 2004, 03:48 AM
|
|
|
|
Join Date: Apr 2007
Location: walden,ny
Posts: 77
Time spent in forums: < 1 sec
Reputation Power: 2
|
|
|
drop down menu - auto
I'm tried of making people hit the submit button everytime they use my drop down menus. Is there a way that once they click on an item, then that one item will be sent to another form? Here is my code:
php Code:
Original
- php Code |
|
|
|
</head> <body> <?php $i = 1; @ $fp = fopen("$DOCUMENT_ROOT/test/States.txt", 'r'); { // echo $order; $statename[$i] = $state; $i++; } echo "<form action='http://www.urspot.net/test/city.php' method='post'>n"; echo "<select name='state'>n"; for ($i=1;$i<=5;$i++) { echo "<option value=$statename[$i]n"; echo "> $statename[$i]n"; } echo"</select><noscript><INPUT type='submit' value='Go' name=submit></noscript>"; ?> </body> </html>
I have searched and searched and no luck. Can someone help me please?
|