#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2000
    Posts
    3
    Rep Power
    0
    Is there anyway to pass a PHP variable into a Javascript function without using ?var1=x
    in the URL and without forms ?

    Thanks,
  2. #2
  3. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    Perth West Australia
    Posts
    757
    Rep Power
    15
    you can create/rewrite an external .js file with the vars you need and just include that in the normal way.

    <script language="javascript" src="my.js"></script>

    If this is ahead of the other scripts, variables in it should be available in subsequent scripts? (I think )

    ------------------
    Simon Wheeler
    FirePages -DHTML/PHP/MySQL

IMN logo majestic logo threadwatch logo seochat tools logo