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

Cascading Selection

Status
Not open for further replies.

cogdev

MIS
Nov 30, 2001
85
US
I have a form with 2 drop-down menus. One has a start date, and the other an end date, pulling the date filed from the same table. Once a start date is selected, is there anyway of forcing the second drop-down to display the dates => the startdate?
 
Not strictly from PHP.

PHP runs on the server, not the client. To get automatic updating to happen on user events on the web browser, you must use client-side scripting.

That client-side script could invoke the PHP script from the server.


Want the best answers? Ask the best questions!

TANSTAAFL!!
 
You could download all the dates and hold them in javascript and show only the appropriate one. Can you calculate the end date from the start date ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top