GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Inserting javascript code into a PHP page/????How??? (https://gfy.com/showthread.php?t=769572)

Juicy D. Links 09-17-2007 09:07 PM

Inserting javascript code into a PHP page/????How???
 
do i have to use echo?


echo fgfdg
echo gffgfsdgf

and so on?

psili 09-17-2007 09:14 PM

Here's a lame way to do it:

$js=<<<EOQ
<script type="text/javascript" language="javascript">
alert("Hi there");
</script>
EOQ;
echo $js;

Juicy D. Links 09-17-2007 09:21 PM

thx i got it from here :-)

SmokeyTheBear 09-17-2007 09:50 PM

Code:

<?php
if ($juicy == "gay"){

?>
<script>
alert('you are gay');
</script>
<?php
}
?>


bDok 09-17-2007 10:22 PM

Quote:

Originally Posted by SmokeyTheBear (Post 13102809)
Code:

<?php
if ($juicy == "gay"){

?>
<script>
alert('you are gay');
</script>
<?php
}
?>


:1orglaugh:1orglaugh

million 09-17-2007 10:31 PM

hehehehehe


All times are GMT -7. The time now is 04:20 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123