Connecting Tech Pros Worldwide Forums | Help | Site Map

php using javascript objects

phdfromic@yahoo.com
Guest
 
Posts: n/a
#1: Jan 9 '06
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
Guest
 
Posts: n/a
#2: Jan 9 '06

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@attglobal.net
==================
Closed Thread