Forum Moderators: coopster

Message Too Old, No Replies

variabes from form to database

         

Flolondon

4:42 pm on Mar 22, 2006 (gmt 0)

10+ Year Member



Please can someone say which is the best way to send variables in a form to a database.

what is the best method please.

ryan26

5:37 pm on Mar 22, 2006 (gmt 0)

10+ Year Member



You'll want to post the form to another page (this page address will be the ACTION value for your form) which will accept the posted parameters ($_POST) first. Once the second page has received the posted variables you'll be able to form a query using the variables and execute.

More on accepting POST variables here: [ca3.php.net ]

You could also use the GET method with your form and accept the query string variables in a similar fashion - depends on the size and sensitivity of the data you're passing to the second page.

Flolondon

11:37 am on Mar 29, 2006 (gmt 0)

10+ Year Member



thanks