Inserting javascript code into a PHP page/????How???

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Juicy D. Links
    So Fucking Banned
    • Apr 2001
    • 122992

    #1

    Inserting javascript code into a PHP page/????How???

    do i have to use echo?


    echo fgfdg
    echo gffgfsdgf

    and so on?
  • psili
    Confirmed User
    • Apr 2003
    • 5526

    #2
    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

    • Juicy D. Links
      So Fucking Banned
      • Apr 2001
      • 122992

      #3
      thx i got it from here :-)

      Comment

      • SmokeyTheBear
        ►SouthOfHeaven
        • Jun 2004
        • 28609

        #4
        Code:
        <?php
        if ($juicy == "gay"){
        
        ?>
        <script>
        alert('you are gay');
        </script>
        <?php
        }
        ?>
        hatisblack at yahoo.com

        Comment

        • bDok
          Confirmed User
          • Feb 2005
          • 1917

          #5
          Originally posted by SmokeyTheBear
          Code:
          <?php
          if ($juicy == "gay"){
          
          ?>
          <script>
          alert('you are gay');
          </script>
          <?php
          }
          ?>
          =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
          Warriors come out to plaAAaayyy!
          =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

          Comment

          • million
            Confirmed User
            • Apr 2006
            • 789

            #6
            hehehehehe
            <sig spot goes here>

            Comment

            Working...