RE: [PHP] Changing the Action attribute of Form

2006-11-01 Thread Richard Lynch
On Wed, November 1, 2006 10:09 am, Edward Kay wrote: > $redirect_url = 'http://www.example.com/path/to/' . $redirect_page; > header('Location:'.$redirect_url); > exit(); Rant #43 I will never understand why one would waste bandwidth and bounce the server/user/browser/user/browser/server bac

Re: [PHP] Changing the Action attribute of Form

2006-11-01 Thread Richard Lynch
2On Wed, November 1, 2006 9:20 am, sues wrote: > I need to pass control of a form to either a page that accesses our > database, and displays the data, OR to a page that contains static > content. > The ACTION attribute will then depend on the contents of 1 of the > input > fields in the form, whic

Re: [PHP] Changing the Action attribute of Form

2006-11-01 Thread David Giragosian
Wasn't there a thread recently about a webpage having multiple forms on it, each of course with its own action attribute? Might be another solution here. David On 11/1/06, Dave Goodchild <[EMAIL PROTECTED]> wrote: Example HTTP redirect: header('Location: http://www.google.com";);

Re: [PHP] Changing the Action attribute of Form

2006-11-01 Thread Dave Goodchild
Example HTTP redirect: header('Location: http://www.google.com";);

Re: [PHP] Changing the Action attribute of Form

2006-11-01 Thread Ed Lazor
Javascript: Have the submit button call a JS function which would check the state of the select and set the action appropriately before submitting the form. PHP: submit the result to a dispatcher script that'll redirect to one of the targets based on what has arrived in the da

RE: [PHP] Changing the Action attribute of Form

2006-11-01 Thread Edward Kay
] > Sent: 01 November 2006 15:47 > To: Edward Kay > Subject: Re: [PHP] Changing the Action attribute of Form > > > Edward, > > Thank-you so much for responding to my question. I am new to PHP and I'm > lost as to how you would redirect users using an HTTP header. >

RE: [PHP] Changing the Action attribute of Form

2006-11-01 Thread Edward Kay
hing. It can be easily tampered with plus users without JS/JS turned off won't be able to use your site. Edward > -Original Message- > From: sues [mailto:[EMAIL PROTECTED] > Sent: 01 November 2006 15:20 > To: php-general@lists.php.net > Subject: [PHP] Changing the Action att

Re: [PHP] Changing the Action attribute of Form

2006-11-01 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-11-01 10:20:07 -0500: > I need to pass control of a form to either a page that accesses our > database, and displays the data, OR to a page that contains static content. > The ACTION attribute will then depend on the contents of 1 of the input > fields in the form, whi

[PHP] Changing the Action attribute of Form

2006-11-01 Thread sues
I need to pass control of a form to either a page that accesses our database, and displays the data, OR to a page that contains static content. The ACTION attribute will then depend on the contents of 1 of the input fields in the form, which is a SELECT type of input. Here is an example of what