#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 1999
    Location
    Denmark
    Posts
    83
    Rep Power
    15
    I would like to pass some values from javascripts to some of my php scripts, is that posible?



    ------------------
    regds..
    -ulrik-

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

    Join Date
    Jan 2000
    Location
    Gorakhpur,U.P.,India
    Posts
    24
    Rep Power
    0
    I think what you are asking for is pretty simple and staright forward. Make your java call the php3 script with something like

    yourscript.php3?var1=value1&var2=value2

    and you will access $var1 and $var2 in your php script.

    hope this helps.


    ------------------
    Anish Modi
    Infotech World
    India
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 1999
    Location
    Helden,Limburg,The Netherlands
    Posts
    33
    Rep Power
    15
    If you use a form to send data you can also use hidden fields that are set by Javascript.

    In PHP the variables will have the same name as the name of the hidden fields, preceded by $ of course.

    ------------------
    Ramon Litjens
    Boradoli Web Design
    (www.boradoli.nl)
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 1999
    Location
    Denmark
    Posts
    83
    Rep Power
    15
    Thanks guys

    I should have thought of that myself, it's kind of embarrassing...

    ------------------
    regds..
    -ulrik-

Similar Threads

  1. Javascript: trying to pass variable directly to array
    By Sunny Monkey in forum JavaScript Development
    Replies: 12
    Last Post: December 6th, 2004, 09:17 AM
  2. PHP scripts to run in Javascript continuously
    By linhardt in forum JavaScript Development
    Replies: 0
    Last Post: February 13th, 2004, 02:51 PM
  3. 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
  4. javascript inside php tags
    By andy123 in forum JavaScript Development
    Replies: 5
    Last Post: February 5th, 2004, 04:34 PM
  5. pass value from one php page to another php page
    By fluke_tony in forum PHP Development
    Replies: 4
    Last Post: January 27th, 2004, 09:55 PM

IMN logo majestic logo threadwatch logo seochat tools logo