Re: pass parameter from client to server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 






On Jul 18, 2013, at 6:07 PM, Daniel Brown <danbrown@xxxxxxx> wrote:

> On Thu, Jul 18, 2013 at 6:04 PM, iccsi <inungh@xxxxxxxxx> wrote:
>> I have a select control on the form and need to pass value user select to my
>> query parameter.
>> I just realized that user entry value is client side and query parameter is
>> server side.
>> Are there any way to read client parameter to pass to server?
>> 
>> You information and help is great appreciated,
> 
>    Not from PHP unless you pass it via GET or POST, or as a cookie.
> You may want to look into JavaScript, jQuery, and AJAX for your
> specific needs, but that all gets beyond the scope of this list.

Daniel is right.

Here's my way to do what you are asking:

http://php1.net/a/ajax/

Please examine the javascript that accompanies the demo.

It simply sends GET values to a php script that changes the values in the GET Array without a refresh.

However, I would not provide such access to a db query without a great deal of cleaning.

Cheers,

tedd


_____________________
tedd.sperling@xxxxxxxxx
http://sperling.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php






[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux