Not exactly.  I mean, like I said, you can execute a script as the action,
but if you have output generated by the script, a redirect using header() or
a javacsript redirect won't work (I think).  You could either write all of
the output (don't ask me how, but I'm sure it's possible) to a file,
redirect, and then output the file you wrote, or what I would probably do
myself is make a link saying "continue" to the page you want the user
redirected to.

But, no, you can't execute PHP code with a button (or any form element) that
I'm aware of, and as far as I know without submitting the form.

Jason

----- Original Message -----
From: kaab kaoutar <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, March 01, 2001 1:00 PM
Subject: [PHP] Javascript & php


>
> Thanks!
> Does it mean that there is no way to execute a php statement
> after the click of a button ? then go to the other page mentionned in the
> form action ?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to