Re: [PHP] pass parameter from client to server

[email protected] (Tedd Sperling)
Newsgroups php.general
Message-ID <[email protected]>



On Jul 18, 2013, at 6:07 PM, Daniel Brown <[email protected]> wrote:

> On Thu, Jul 18, 2013 at 6:04 PM, iccsi <[email protected]> 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


_____________________
[email protected]
http://sperling.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.