Im working on a bit of a script, and have the following problem. I need to be able to choose from 2 different options, so far I have hard coded the following in: <input type="hidden" name="table" value="members"> <input type="hidden" name="row" value="email"> Code (markup): Now I also want to be able to select this as well <input type="hidden" name="table" value="photographers"> <input type="hidden" name="row" value="email"> Code (markup): Can this be done with a dropdown menu? or how can I get this done? I can not even se how to do it with buttons......
so you are wanting to ask people if they are members or photographers? little confused on what you are trying to achieve with the hidden fields
Table: <select name="table"> <option value="members">Members</option> <option value="photographers">photographers</option> </select> Row: <select name="row"> <option value="email">Email</option> <option value="foo">Foo</option> <option value="bar">Bar</option> </select> HTML: Something like this?
<input type="radio" name="option['members']" value="members"> <input type="radio" name="option['photographer']" value="photographers"> Code (markup): Select either or??
I have ended up hard coding the <input type="hidden" name="row" value="email"> in, and just done the drop down box for the 2 options, as the row is the same, it's just the table that changes. Sorry, just didn't juse my head enough on that one.