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 dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

populating dropdowns on the fly 1

Status
Not open for further replies.

Bertiethedog

Programmer
Feb 8, 2007
118
GB
I am trying to expand my knowledge, I have seen some websites where you have a dropdown menu & according to your choice on the first dropdown a second is populated.

As an example if I had two dropdowns & the first was to select a car manufacturer & after your selection the second dropdown gets populated with all the models that the manufacturer has made.

Also it appears to do it without refreshing the screen

Kind Regards

Richard
 
What you are trying to accomplish would be best done with javascript. PHP is a server side language and your looking for the client to process without a refresh.


"If the only prayer you said in
your whole life was, 'thank you,'
that would suffice."
-- Meister Eckhart
 
Hi
Thanks for your help

This is going to take a bit of learning.
What I have in mind is a page for creating credit notes from jobno's.

The first section select's the customer & the second select shows a list of jobs that have been invoiced for that customer. Only one or two jobs would be credited out at a time.

I could put a button alongside the customer selection menu & refresh the screen. I do something similar when creating invoices as I have a button to add a line.
The code is pretty complex & untidy, it does work but I am sure there must be an easier way to achieve the required result

It looks like I will be learning Javascript in the near future

Thanks for your Help


Richard

 
Have a look at AJAX and use both server side and client side
 
Hi

I have had a look at AJAX which looks as if it will fit the bill.

I am gratefull to both of you for answering my query, you can spend a long time chasing round different progs trying to work out which is most suitable.

Thanks Again



Richard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top