FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » combobox
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: combobox [message #177316 is a reply to message #177314] Thu, 08 March 2012 14:21 Go to previous messageGo to previous message
ecu_jon is currently offline  ecu_jon
Messages: 3
Registered: March 2012
Karma:
Junior Member
i got it to work. thanks for forcing me to look again at what was
getting POST 'ed on page5. once i saw the values were not exactly what
i though, i could figure it out. i made the drop-down part of the box
a new variable, and added an option for creating a new(using the
textbox). then on page5 did a if drop-down != first option, set
variable to Client. Just below
if(isset($_POST['Client'])) $Client = $_POST['Client']; so it would
overwrite the Client variable.
did some testing, if i choose something else in drop-down nothing in
textbox, it does as expected.
if i choose first value and write in text box it adds new, as
expected.
and if you do both pick from drop-down (not first value) and write in
text it chooses the drop-down value to write to db.

now if we could just get a real combo-box option somehow ...
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: which command to use
Next Topic: Parse error: syntax error, unexpected T_VARIABLE
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 00:15:58 GMT 2024

Total time taken to generate the page: 0.03939 seconds