Jump to content


Photo

How to write javascript inside PHP? (IT IS POSSIBLE????)


  • Please log in to reply
1 reply to this topic

#1 rajmohan

rajmohan
  • Members
  • PipPipPip
  • Advanced Member
  • 169 posts

Posted 20 September 2006 - 10:32 AM

Hello guy

I want to to write a javascript inside php who to write it please help me

#2 shocker-z

shocker-z
  • Members
  • PipPipPip
  • Advanced Member
  • 864 posts
  • LocationNottingham

Posted 20 September 2006 - 10:43 AM

do you mean like create a javascript from variables in php if so then you can do it like this

echo '<javascript language="javascript">';
echo "all your code here and variables just like $var will work";
echo '</script>';

Regards
Liam
www: www.ukchat.ws | irc: irc.ukchat.ws chan: #blufudge




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users