You are here: Re: Query using html form variables « PHP SQL « IT news, forums, messages
Re: Query using html form variables

Posted by Hilarion on 07/13/05 12:36

ft310 wrote:
> I gather from your message that nothing is going to happen unless I
> logically engage the submit function.
>
> Is there no why to do this otherwise -- I am surprised the exchange of hthl
> variables and php variable is so circuitous


Remember that PHP works on server side and all the data the user types
into HTML form is on the client side (in the web browser). The only way
the data can get to the PHP on the server is by HTTP request (which can
be eg. by clicking URL containing parameters in the browser, by
submiting a form or by the cookies stored by the browser which are
send also sent with the two first situations).
If you want your HTML form to submit automatically, then you'll have
to use JavaScript, but I do not recommend it (specially when it's
about text fields) cause not all users like when the webpage reloads
itself without their explicit request.
You can also use JavaScript to do HTTP request in background, but
presenting results from such actions is a bit complicated (and it's
not something to discuss on this group).


Hilarion

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация