Re: [PHP] Switch Form

2005-02-01 Thread Richard Lynch
Lancer Emotion 16 wrote:
> 
> 
>
> 
> 
>
> Now, in page.php is possible to do a switch of form name? Something like
> this :
>
>  Switch ($_POST['form'] {
>  'form1' : ...
>  'form2' : ...
> }
>
> If this is possible,i dont know how to call it, can you help me please?

The NAME attribute on a FORM tag is not sent via HTTP by any browser.

W3C HTML 4.01 spec says it's only there "style sheets or scripts" but is
only there for compatibility and you should use id attribute -- which is
ALSO not sent by any browser I know of.

Perhaps the spec should read "client scripts" since clearly these are
useless for server scripts dealing with the submitted form, if you read
the form submission specification.

Assuming you can stay awake enough to read that sucker... :-)

To solve your problem, you'll need to have  on the first form and use form2 on the second
form.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Switch Form

2005-02-01 Thread Jay Blanchard
[snip]
Hi list,I have 2 forms :







Now, in page.php is possible to do a switch of form name? Something like
this :

 Switch ($_POST['form'] {
 'form1' : ...
 'form2' : ...
}

If this is possible,i dont know how to call it, can you help me please?
[/snip]

Do this... 









switch ($_POST['action]){
case "Button 1":
...stuff...
break;

case "Button 2";
...stuff...
break;
}

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Switch Form

2005-02-01 Thread Lancer Emotion 16
Hi list,I have 2 forms :







Now, in page.php is possible to do a switch of form name? Something like this :

 Switch ($_POST['form'] {
 'form1' : ...
 'form2' : ...
}

If this is possible,i dont know how to call it, can you help me please?

Thanks in advance. 

-- 
lancer emotion 16

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php