Hello,
I suspect this question is either really simple, or I'm asking something that PHP won't do.
I have a drop down box, I select an item "computers" and I want to be able to access that value using php. What I'm really trying to do is base a POST action command on the fact that "computers" is selected.
I'm trying to make the action="nextpage.php?f=X" where X is a number that corresponds to "computers". So the action would be nextpage.php?f=1 for computers, nextpage.php?f=2 for cars. and so on.
I just can't for the life of me get the value of that drop down box. If I get "computers" I can obviously do an if and asign it 1, that's no problem, but how to get "computers" from the drop down. I'm much more familiar with c and java than html and php, so I might be barking up the wrong tree.
Thank you very much for any help. Any suggestion might help me to an answer!
I suspect this question is either really simple, or I'm asking something that PHP won't do.
I have a drop down box, I select an item "computers" and I want to be able to access that value using php. What I'm really trying to do is base a POST action command on the fact that "computers" is selected.
I'm trying to make the action="nextpage.php?f=X" where X is a number that corresponds to "computers". So the action would be nextpage.php?f=1 for computers, nextpage.php?f=2 for cars. and so on.
I just can't for the life of me get the value of that drop down box. If I get "computers" I can obviously do an if and asign it 1, that's no problem, but how to get "computers" from the drop down. I'm much more familiar with c and java than html and php, so I might be barking up the wrong tree.
Thank you very much for any help. Any suggestion might help me to an answer!