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

    Join Date
    Aug 2000
    Location
    India
    Posts
    21
    Rep Power
    0
    how can i refer a javascript variable in my php program?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Posts
    58
    Rep Power
    15
    Use the header, luke.

    You simple need to contact the server again, since PHP is a serverside software and javascript is a clientside one.

    <script>
    if (1 < 2)
    {
    document.href.location='thispage.php?mathproblem=true';
    }
    </script>


    ------------------

    ¬ peterbe.com ¬

Similar Threads

  1. pass php value of a varible to javascript variable
    By fluke_tony in forum JavaScript Development
    Replies: 1
    Last Post: February 13th, 2004, 03:34 AM
  2. calling a variable in the html with javascript
    By grungefade in forum JavaScript Development
    Replies: 4
    Last Post: February 10th, 2004, 04:34 PM
  3. javascript inside php tags
    By andy123 in forum JavaScript Development
    Replies: 5
    Last Post: February 5th, 2004, 04:34 PM
  4. Get a Javascript variable into PHP, again
    By fchausson in forum JavaScript Development
    Replies: 2
    Last Post: February 5th, 2004, 09:55 AM
  5. php send variable to javascript
    By moniphp in forum JavaScript Development
    Replies: 12
    Last Post: January 20th, 2004, 01:54 PM

IMN logo majestic logo threadwatch logo seochat tools logo