Re: Passing a PHP variable to javascript
| From: | John Wards | Date: | Mon, 19 Aug 2002 12:59:59 +0000 |
| Subject: | Re: Passing a PHP variable to javascript | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-113195@lists.php.net to get a copy of this message | ||
alert(<?echo $text?>)
----- Original Message -----
From: "Michael" <mtphp@ifrance.com>
To: <php-general@lists.php.net>
Sent: Monday, August 19, 2002 1:54 PM
Subject: [PHP] Passing a PHP variable to javascript
> Hello everyone,
>
> This may seem a newbie question...
>
> I have a PHP variable containing the text of the alert I want to display
> ($text) and I want to have it displayed in a javascript alert box
> (something like alert($text) ).
> I couldn't find out how to sort this out...
>
> Regards,
> Michael
>
>
>
____________________________________________________________________________
__
> Pour mieux recevoir vos emails, utilisez un PC plus performant !
> Découvrez la nouvelle gamme DELL en exclusivité sur i (france)
> http://www.ifrance.com/_reloc/signhdell
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php