Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to get data from DB in php form?

Status
Not open for further replies.

alan123

MIS
Joined
Oct 17, 2002
Messages
149
Location
US
I have two textbox in form, tbox1 and tbox2, tbox1 is a dropdown menu which collect data from db, I want tbox2 also retrieve the data from DB based on the tbox1's value, so when I click and select tbox1, it will update the value on tbox2, how I can set the form event in php page?
 
perhaps this thread is wat you looking for
thread434-743971
 
oh and the working example is gone, I will look if I can retrieve it from somewhere

 
hos2, thanks for your posting, I have read your message at:

thread434-743971 have a question, in the code:
Code:
<select name=&quot;whbotid&quot; onchange=&quot;window.location.replace('example1.php3?whbotid='+ window.document.tektips.whbotid.value)&quot;><option value=&quot;&quot;>

I need to use $_GET[] to get those parameters from replaced url, actually I have many other parameters in the form and impossible to write in &quot;window.location.replace('....')&quot;, is there a way to pass all other parameters? thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top