Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
0
Answer
set the value of textbox using optionlist
arti maheshwari
10y
642
1
Reply
I have a database table named tblCityState with the following data:
CITY
STATE
New York
New York
Los Angeles
California
Atlanta
Georgia
on my aspx page I have a dropdown (ddCity) bound to the table (Select City from tblCityState).
When the user Selects "Los Angeles" from the DropDown, I want a textbox (tbState) to be populated with "California".
Now, I could set the value of the DropDown Item to be the State, but I want the Item value to be the City.
What is the best / easiest way to achive this with PHP?
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
php with oracle database
how to match a date in array of date and grep that text file