Re: self processing forms

From: J.O. Aho (user_at_example.net)
Date: 09/23/04


Date: Thu, 23 Sep 2004 18:50:22 +0200

R. wrote:
> I'm doing a survey using a self processing form. Here is an example of
> that I want to accomplish using php.
>
> 1. What is your city of birth
>
> radio buttons go here e.g. Houston, New York, Philly, Boston.
>
> 2. Series of questions pertaining to all cities.
>
> (I want to change this section to display only questions pertaining to
> the city selected in 1 above)
>
> Any help will be appreciated

Make a database where you have a city_table with columns:

city question

The first page you list up all the cities.

Send the result of the page to the second page, which compares the answer with
the database and fetches the question (or questions) for the city in question
and lists them. The second page calls the third page which saves the data (or
does what ever you want to do).

Not that difficult.

  //Aho