|
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]
|