Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199901

Re: [PHP3] form + javascript + php From: Chad Cunningham (ccunning <email protected>)
Date: 01/13/99

No, JavaScript can't execute any other script, for security reasons. I think this
is a pretty good precaution, and while it would be nice sometimes to be able to do
it, it would pose more problems than it would solve.

Gregori Faroux wrote:

> And another question ...
> Is there a way to run some php code in a javascript function ???
>
> I mean ... this source updates the form without any reload. So if
> there's a way to run some php in the function called "update", then I
> will be able to look in my files to take the new data to print wihout
> any reload.
>
> <SCRIPT LANGUAGE="JavaScript">
> function update(form) {
> form.text1.value="here";
> }
>
> <FORM NAME="myForm">
> Form name:<INPUT TYPE="text" NAME="text1" VALUE="something">
> <INPUT NAME="button1" TYPE="button" VALUE="Show Form Name"
> onClick="update(this.form)">
> </FORM>
>
> Does it make sense to anybody ?
>
> g
>
> --
> PHP 3 Mailing List http://www.php.net/
> To unsubscribe send an empty message to php3-unsubscribe <email protected>
> To subscribe to the digest list: php3-digest-subscribe <email protected>
> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3
> List administrator: zeev <email protected>

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:  http://www.php.net/mailsearch.php3
List administrator:  zeev <email protected>