Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Dec 2004
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Javascript in PHP, parts missing

    I have a link in my php code to open a popup window.

    Code:
    <a href='javascript:poptastic('http://db.n00bless.com/player_info.php?players=update'>
    when the script is 'live' it is missing part of the javascript and only displays

    Code:
    javascript:poptastic(
    but when I vew the source its all there

  • #2
    Senior Coder CFMaBiSmAd's Avatar
    Join Date
    Oct 2006
    Location
    Denver, Colorado USA
    Posts
    3,146
    Thanks
    2
    Thanked 333 Times in 325 Posts
    Looks like a mis-match of quotes. You would need to post more information about how you are forming and outputting this to get specific help.
    If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.

  • #3
    New Coder
    Join Date
    Jan 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    PHP Code:
    <a href="javascript:poptastic('http://db.n00bless.com/player_info.php?players=update')">
    Click me
    </a


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •