Topic awaiting preservation: HTML Form Control and PHP (Beginner) |
|
---|---|
Author | Thread |
Obsessive-Compulsive (I) Inmate From: |
posted 03-04-2003 02:54
Hello, quote:
quote:
|
Maniac (V) Inmate From: Florida |
posted 03-04-2003 04:52
Use $_POST and $_GET (Predefined Variables). If you are running PHP version 4.0.6 or lower, you will need to use $HTTP_XXX_VARS instead as these versions do not have superglobals =) If you are looking for practical examples check this tutorial out (Dealing with Forms) or look this up in the manual (Variables from outside PHP) Hope this helps. |
Paranoid (IV) Inmate From: Den Haag, Netherlands |
posted 03-04-2003 07:32
As a catchall, I tend to use the superglobal $_REQUEST - it's an associative array which holds all the variables in $_GET, $_POST, and $_COOKIE - I'm just lazy - I like 'em all in one place. (Same documentation refs as given by Kriek). Example .... code: $username=trim($_REQUEST["username"]);
|
Maniac (V) Inmate From: under the bed |
posted 03-04-2003 14:09
Aside from that, I would think that having each input wrapped in it's own form, including the submit button, has to be causing problems. When the submit button is pressed, you're submitting whatever information is in "form1", which is nothing. |
Obsessive-Compulsive (I) Inmate From: |
posted 03-04-2003 21:27
Thank you all, |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 03-04-2003 21:34
One last little tip |
Maniac (V) Inmate From: Florida |
posted 03-04-2003 23:30
quote:
|
Maniac (V) Inmate From: under the bed |
posted 03-05-2003 02:40
I must admit that the image of kriek lambic has been the only thing in my mind every time I see your name (even though I've known it's your actual name!). |