Then still a JavaScript:
Find a code that loads or submits the page (passing a var) when
selecting/clicking on a country in the <select> list. Then using your
variable contains the country get the needed cities.
That is the only way to 'emulate' JS.
You could also provide an HTML text list of countries, and then under it the
list of cities, and so on and so on...
I would try to do it step-by-step:
You select your country first, then on the next page select your city and
then on the next page fill in the form. Page 2 and 3 can actually be
together if you wish. I kinda don't like JavaScript (except for intranet
sites, where usability is the must), too long code, too bad compatibility,
too easy to disallow...
Hope this helps,
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-----Original Message-----
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> 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 wouldn't really be a problem, I guess, but I need
PHP for going
into my database.
Any ideas?
Alexander 'ad' Deruwe
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]