Posted by Alan Little on 05/30/06 20:30
Carved in mystic runes upon the very living rock, the last words of
<pulkit.gaur@gmail.com> of comp.lang.php make plain:
> I have a PHP class.
> In the constructor method i use the following code :
>
> constructor func .......
> {
> echo "<script type=\"text/javascript\">";
> echo "alert('hi');
> echo "</script>";
>
> }
If that's a copy-and-paste, you're missing a " at the end of your second
echo statement. Other than that, it works fine for me.
--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
[Back to original message]
|