php using javascript objects

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • phdfromic@yahoo.com

    php using javascript objects

    I want to initialize a TEXTAREA with text depending on the values
    already selected in other areas - input type=TEXT or SELECT.

    How can I set a PHP variable with a value retrieving those HTML object
    values ?

  • Jerry Stuckle

    #2
    Re: php using javascript objects

    phdfromic@yahoo .com wrote:[color=blue]
    > I want to initialize a TEXTAREA with text depending on the values
    > already selected in other areas - input type=TEXT or SELECT.
    >
    > How can I set a PHP variable with a value retrieving those HTML object
    > values ?
    >[/color]

    First of all, PHP runs server side, not client side. So you can't
    access the javascript objects in the client's browser.

    You can get the info from the $_POST or $_GET variables (depending on
    how you process your forms). But it means sending the page to the
    server then sending it back to the browser.

    --
    =============== ===
    Remove the "x" from my email address
    Jerry Stuckle
    JDS Computer Training Corp.
    jstucklex@attgl obal.net
    =============== ===

    Comment

    Working...