Howto pass a textfield value to a pop form? I need to pass the value so
that the drop down box on the form would autopopulate the items related
to that value in the textfield. I'm using PHP. any help please?

Recommended Answers

All 3 Replies

You would need to use javascript

Member Avatar for diafol

I sincerely hope that you use faux-popups like lightboxes as opposed to new window popups.

Couple of methods open to you:

1) Place static arrays of values into JS - when a dropdown option chosen onselect changes the values in the popup via innerHTML value.
2) Use ajax to retrieve data on the server (usually from a DB - but could be from hard-coded variables) and change values as above.

Hi meffe and ardav,

So I would need java script to do this.

Thank you for the quick response.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.