Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Forums
Blogs
Articles
Groups
Galleries
Member List
Calendar
Home
Forum
Simply Business
Fucking Around & Business Discussion
Inserting javascript code into a PHP page/????How???
Inserting javascript code into a PHP page/????How???
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Juicy D. Links
So Fucking Banned
Join Date:
Apr 2001
Posts:
122992
Share
Post
#1
Inserting javascript code into a PHP page/????How???
09-17-2007, 08:07 PM
do i have to use echo?
echo fgfdg
echo gffgfsdgf
and so on?
psili
Confirmed User
Join Date:
Apr 2003
Posts:
5526
Share
Post
#2
09-17-2007, 08: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;
Your post count means nothing.
Comment
Post
Cancel
Juicy D. Links
So Fucking Banned
Join Date:
Apr 2001
Posts:
122992
Share
Post
#3
09-17-2007, 08:21 PM
thx i got it from here :-)
Comment
Post
Cancel
SmokeyTheBear
►SouthOfHeaven
Join Date:
Jun 2004
Posts:
28609
Share
Post
#4
09-17-2007, 08:50 PM
Code:
<?php if ($juicy == "gay"){ ?> <script> alert('you are gay'); </script> <?php } ?>
hatisblack at yahoo.com
Comment
Post
Cancel
bDok
Confirmed User
Join Date:
Feb 2005
Posts:
1917
Share
Post
#5
09-17-2007, 09:22 PM
Originally posted by
SmokeyTheBear
Code:
<?php if ($juicy == "gay"){ ?> <script> alert('you are gay'); </script> <?php } ?>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Warriors come out to plaAAaayyy!
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Comment
Post
Cancel
million
Confirmed User
Join Date:
Apr 2006
Posts:
789
Share
Post
#6
09-17-2007, 09:31 PM
hehehehehe
<sig spot goes here>
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
😀
😂
🥰
😘
🤢
😎
😞
😡
👍
👎
☕
Comment