RE: [PHP] forms and variables?

2006-04-21 Thread Jay Blanchard
[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;

Re: [PHP] forms and variables?

2006-04-21 Thread Jochem Maas
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 -

Re: [PHP] forms and variables?

2006-04-21 Thread tedd
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

Re: [PHP] forms and variables?

2006-04-21 Thread Richard Lynch
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

Re: [PHP] Forms Session variables

2003-03-11 Thread Ashley M. Kirchner
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] .

Re: [PHP] Forms Session variables

2003-03-10 Thread Justin French
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: