Re: [PHP] HTML/PHP's static state problem.

2001-07-10 Thread Aaron Bennett
PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Boget, Chris [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 1:51 AM To: 'PHP'; [EMAIL PROTECTED]; Alexander Deruwe Subject: RE: [PHP] HTML/PHP's static state problem

Re: [PHP] HTML/PHP's static state problem.

2001-07-09 Thread Alexander Deruwe
Hello Maxim, Basically I mean this: I load the page, it has two comboboxes (select with option). The first one contains names of countries, the second names of cities within those countries. When I select Belgium in the first one, I only want to see all Belgian cities. Now with JavaScript this

RE: [PHP] HTML/PHP's static state problem.

2001-07-09 Thread Maxim Maletsky
- From: Alexander Deruwe [mailto:aderuwe@mayhem]On Behalf Of Alexander Deruwe Sent: Tuesday, July 10, 2001 3:39 AM To: Maxim Maletsky Cc: [EMAIL PROTECTED] Subject: Re: [PHP] HTML/PHP's static state problem. Hello Maxim, Basically I mean this: I load the page, it has two comboboxes (select

RE: [PHP] HTML/PHP's static state problem.

2001-07-09 Thread Boget, Chris
Basically I mean this: I load the page, it has two comboboxes (select with option). The first one contains names of countries, the second names of cities within those countries. When I select Belgium in the first one, I only want to see all Belgian cities. Now with JavaScript this

Re: [PHP] HTML/PHP's static state problem.

2001-07-09 Thread infoz
If it's not prohibitive, you can pre-load all the possibilities into javascript arrays via PHP, and decide which to subset to display using javascript. I did this on a large on-line kid's encyclopedia, where the page could display different lists of links using javascript depending on where they

Re: [PHP] HTML/PHP's static state problem.

2001-07-09 Thread PHP
As a matter of fact you can create dynamic comboboxes, but not with soley PHP. Because PHP is server-side, it has no idea what the user has selected on a form, etc. JavaScript, on the other hand, is client-side, so it keeps track of what the user is doing. I've done this very thing for

RE: [PHP] HTML/PHP's static state problem.

2001-07-09 Thread Boget, Chris
I've done this very thing for a leasing company. I used PHP and MySQL to create a series of arrays in Javascript. When the user clicked on a value in the first combobox I used onClick to call a function which loaded information into the second box. A definite possibility. The

RE: [PHP] HTML/PHP's static state problem.

2001-07-09 Thread Maxim Maletsky
) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Boget, Chris [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 1:51 AM To: 'PHP'; [EMAIL PROTECTED]; Alexander Deruwe Subject: RE: [PHP] HTML/PHP's static state problem. I've done this very thing for a leasing