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

    Join Date
    Aug 2000
    Location
    columbia
    Posts
    2
    Rep Power
    0
    HI listers.

    I have a problem. I can't access a variable that is out of javascript in a php page. When I try to get its value it is empty. What can i do?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Niteroi, RJ, Brazil
    Posts
    30
    Rep Power
    14
    Did you included the ' in the strings? I think you have to escape it...

    ------------------
    Eduardo Teixeira Cardoso
    PHP Programmer from Brazil
    idnotfound@vircio.com.br
  4. #3
  5. .Net Developer
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    London
    Posts
    987
    Rep Power
    15

    <<
    I have a problem. I can't access a variable that is out of javascript in a php page. When I try to get its value it is empty. What can i do?
    >>


    Java script variable can't access in php.becoz the variable will only active on client side(if you want access this variable then you have to submit this to php script from client side).


    Show us what you are trying to do...



    ------------------
    SR -
    webshiju.com
    www.jobxyz.com-IT Career Portal
    ezipindia.com--WebStudio


    "The fear of the LORD is the beginning of knowledge..."

Similar Threads

  1. PHP scripts to run in Javascript continuously
    By linhardt in forum JavaScript Development
    Replies: 0
    Last Post: February 13th, 2004, 02:51 PM
  2. javascript inside php tags
    By andy123 in forum JavaScript Development
    Replies: 5
    Last Post: February 5th, 2004, 04:34 PM
  3. Javascript in PHP
    By tintintin in forum JavaScript Development
    Replies: 5
    Last Post: January 28th, 2004, 05:40 AM
  4. Passing string from PHP to Javascript
    By ka8oad in forum JavaScript Development
    Replies: 4
    Last Post: January 17th, 2004, 03:12 PM
  5. php and javascript together??
    By gursharn in forum JavaScript Development
    Replies: 9
    Last Post: January 13th, 2004, 03:40 PM

IMN logo majestic logo threadwatch logo seochat tools logo