robert323
-
Posts
2 -
Joined
-
Last visited
Never
Posts posted by robert323
-
-
Hi all-
I'm sorry about asking such a trivial and dumb question, but I've looked around in several places, and I can't find the answer.
I'm trying to refference the current text contained in an HTML choosebox.
So say that i've got a choosebox called colour, with the options red, green, orange and blue.
Say someone selects the colour orange, and then hits a submit button.
I'm wondering how i would use a PHP form to echo Orange (or whatever value was selected from the choosebox).
Sorry for such a trivial question again! I'm really new to PHP, and any help is greatly appreciated!
Thanks so much!
-Robert
getting current text from HTML choosebox
in PHP Coding Help
Posted
So here's part of my HTML:
<jato:combobox name="start_hour"/>
<select name="start_hour">
<option value="" selected>Select Starting Hour</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
ok, and here's part of my PHP
$start_hour = $_POST['start_hour'];
echo $start_hour;
**end code
Is there anything horribly, horribly obvious that I'm missing!? Sorry for being so annoying!