RE: [PHP] multiple FORMS on same page problem.

2003-09-17 Thread Ruessel, Jan
) Cc: [EMAIL PROTECTED] Subject: Re: [PHP] multiple FORMS on same page problem. Golawala, Moiz M (IndSys, GE Interlogix) wrote: It is almost working.. I can't figure out why I can get the someVal to page5.php. file: page4.php ?php if (isset($_REQUEST['submit1'])){ echo button 1

RE: [PHP] multiple FORMS on same page problem.

2003-09-16 Thread Golawala, Moiz M (IndSys, GE Interlogix)
is? Thanx Moiz -Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Monday, September 15, 2003 4:36 PM To: Golawala, Moiz M (IndSys, GE Interlogix); [EMAIL PROTECTED] Subject: Re: [PHP] multiple FORMS on same page problem. You can only use one form, as you've figured out

Re: [PHP] multiple FORMS on same page problem.

2003-09-16 Thread John W. Holmes
Golawala, Moiz M (IndSys, GE Interlogix) wrote: It is almost working.. I can't figure out why I can get the someVal to page5.php. file: page4.php ?php if (isset($_REQUEST['submit1'])){ echo button 1 was clicked, act accordingly; echo this the request values; echo $_REQUEST['someVal'];

RE: [PHP] multiple FORMS on same page problem.

2003-09-15 Thread Vail, Warren
I don't know of any rule that says you cannot have two submit button in the same form. Of course, if you need to know which was clicked, you will either need to name them differently or detect their values in your form processing routine. If the button is clicked that should take you to

Re: [PHP] multiple FORMS on same page problem.

2003-09-15 Thread CPT John W. Holmes
You can only use one form, as you've figured out. You can have PHP determine the action for each button, though.. In a form with two buttons, say names submit1 and submit2, only one variable will be set when the form is submitted, the actual button that was clicked. So you can use logic like this

Re: [PHP] multiple FORMS on same page problem.

2003-09-15 Thread Chris Shiflett
--- Golawala, Moiz M (IndSys, GE Interlogix) [EMAIL PROTECTED] wrote: I am creating a page with 2 buttons. ... form action=page4.php method=post ?php echo this is page 4; ? input type=text name='someVal' value='' input type='submit' value='page4 Submit' /form form