Hello,
Probably a stupid one but anyway...
In PHP. Is it possible to point to a variable with the HTML form name by
which it was posted from?
Example:
//point to the variable with something like or somenthing???
$AddNew.SomeVar
form name=AddNew method=post action=? $PHP_SELF ?
$SomeVar =
[snip]
Probably a stupid one but anyway...
In PHP. Is it possible to point to a variable with the HTML form name by
which it was posted from?
Example:
//point to the variable with something like or somenthing???
$AddNew.SomeVar
form name=AddNew method=post action=? $PHP_SELF ?
$SomeVar = Add;
take the following code and do some experimentation:
?
echo 'pre';
echo POST vars: \n;
var_dump($_POST);
echo GET vars: \n;
var_dump($_GET);
echo '/pre';
?
stick that in your page that contain the form and start playing with
different form fields, different form fields names, etc, etc -
At 3:45 PM +0300 4/21/06, William Stokes wrote:
Hello,
Probably a stupid one but anyway...
In PHP. Is it possible to point to a variable with the HTML form name by
which it was posted from?
Example:
//point to the variable with something like or somenthing???
$AddNew.SomeVar
form
On Fri, April 21, 2006 7:45 am, William Stokes wrote:
In PHP. Is it possible to point to a variable with the HTML form name
by
which it was posted from?
The FORM name attribute was an add-on for Javascript client-side.
It is not transmitted by HTTP.
PHP never sees it.
Or do I just have
Guru Geek wrote:
perhaps javascript? let me know if you need further help!
JavaScript can be turned off.
--
W | I haven't lost my mind; it's backed up on tape somewhere.
+
Ashley M. Kirchner mailto:[EMAIL PROTECTED] .
I'm trying to build a multi-step form and using sessions to register
the field values, but having serious issues. This is what I'd like to do:
step 1 (first page): ask for name, address, email. [submit]
step 2 (second page): ask for more personal information [submit]
step 3 (last
You need to slow down and think things through. My recommendation would be
to get a SINGLE PAGE form to work how you want first, then assess the logic
needed to move onto multiple forms.
Also, this was asked a while back, so here was my answer sample code last
time:
8 matches
Mail list logo