Re: javascript to php parameters

by "Darrell King" <darrell(at)>

 Date:  Wed, 4 Sep 2002 11:34:04 -0400
 To:  <hwg-techniques(at)>,
"Nate Harel" <nharel(at)>
 References:  services
  todo: View Thread, Original
1) As a hidden form field - assign the value to the field's value before

<.input type='hidden' name='fieldname' value='fieldvalue' />

2) As a query string value:

Note that both of these require a return to the server.  That's because JS
operates locally, on the client, but has to send the info back to the server
for PHP to use.


----- Original Message -----
From: Nate Harel

Hi all,

I am new to php and am trying to do the following:

I have a home page that has a javascript which prompts the user for some
input. That is then sent to a php script that generates a web page based on
data from a mysql db .

I have the javascript part, and I have the php part, but I don't know how
to pass the input from the user javascript to the php program.

Your help would be greatly appreciated.

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA