Posts: 31
Location: Simi Valley, CA
|
You would need a scripting language and a database to accomplish what you need. PHP is an excellent scripting language and works hand and hand with mySQL, a free open-source database program. Chances are, both of these are already available from your host.
Although it is not difficult to do, some programming experience is required. The trick is to write an include query in SQL. You would then need to pass this query to the database using PHP.
Forms act as if they are variables. The name that you give a form field will be the variable name on the subsequent page after the submit button is hit. For example, a text field named alpha with the user input: omega, will after the submit button has been hit, make a variable available on the subsequent page named alpha with the value: omega.
The sql query would look like this (assuming two variables, alpha=omega and beta=gamma):
INSERT INTO Greek_Letters (First, Second)
VALUES ($alpha, $beta)
This will store the form fields named alpha and beta into the MySQL table, Greek_Letters.
Last edited by ademaskoo; 05-10-2004 at 02:31 PM..
|