Click to See Complete Forum and Search --> : update problem in drop down


zuzupus
09-08-2003, 08:22 AM
hi,

anybody plz let me know how i can change the name of selected drop drown let say if i select test it display in text field and when i change it to forum it will show in dropdown as forum i.e. replaced test by forum

for more clear plz look at http://server2.vitodesign.com/scripts/drop.phtml

there is one Update button how i can update the name as well as in database

anybody come forward for this post be really appreciable

thanks

eomer
09-12-2003, 10:51 AM
Ok let me make sure I understand you correctly. To me it looks like you have at least two questions. The first is how is he getting the text in the drop-down box into the input field? (This right?) Second question is can you put it into a DB? (Again is this right?)

The answer to the first question is that he is using JavaScript to do this function. PHP cannot do this (without resending the page to the server), because the page has already been parsed. This is a custom function to do what this person is doing. (There are many different ways to do this with JavaScript.)

Next, question. Once you have this info in the input fields then yes you can insert them into a db just like any other form.

zuzupus
09-15-2003, 02:52 AM
thanks alot you guess right and i got the probelm from your useful tips

regards