Re: A real problem
| From: | John W. Holmes | Date: | Mon, 26 Apr 2004 20:03:05 +0000 |
| Subject: | Re: A real problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-184695@lists.php.net to get a copy of this message | ||
From: "Phpu" <phpu@go.ro>
> I have this list that interogates the database
> and display the name of the brand.
> <select name="brand">
[snip]
> each brand has more than one model.
> when i chose one of the brands i want to
> be displayed o form like this (in real time):
[snip]
If you want to use PHP, then you're going to need to make the user first
select a "brand" then submit the form and load the "models" associated with
that brand on the next page. If this is a valid solution, let us know and we
can show you how to do it (you've basically got it already).
If you want all this to happen on the same page without an actual form
submission, then you need to pursue an answer on a JavaScript mailing list
and/or forum. PHP can be involved in this somewhat to help generate the
JavaScript, but it's not doing any of the actual work. Get a basic example
going first, and then we can tell you how to add in the PHP.
---John Holmes...