This is one way to do it        
        echo "<SCRIPT LANGUAGE=\"JavaScript\">\n";
        echo "<!--\n";
        echo "alert(\"$text\")\n";
        echo "//-->\n";
        echo "</SCRIPT>\n";


On Mon, 19 Aug 2002 12:54:57 GMT, [EMAIL PROTECTED] (Michael) wrote:

>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...
>Pour mieux recevoir vos emails, utilisez un PC plus performant !
>Découvrez la nouvelle gamme DELL en exclusivité sur i (france)

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to