![]() Topic awaiting preservation: HTML Form Control and PHP (Beginner) (Page 1 of 1) |
|
---|---|
Obsessive-Compulsive (I) Inmate From: |
![]() Hello, quote:
quote:
|
Maniac (V) Inmate From: Florida |
![]() 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 |
![]() 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 |
![]() 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: |
![]() Thank you all, |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() One last little tip |
Maniac (V) Inmate From: Florida |
![]() quote:
|
Maniac (V) Inmate From: under the bed |
![]() 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!). |