Re: Javascript & php

From: Date: Thu, 01 Mar 2001 18:08:41 +0000
Subject: Re: Javascript & php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-42202@lists.php.net to get a copy of this message
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 <kaab_k@hotmail.com> To: <kjohnson@zootweb.com> Cc: <php-general@lists.php.net> 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 ?

« previous php.general (#42202) next »