This can't be done with PHP. PHP is a server side only technology. What you will need to do is use Javascript (specifically Ajax) to send the information to the server, get a response from PHP and act on it.
For more information you can check the documentation on different toolkits like Yahoo's or Dojo (dojo can be found at http://www.dojotoolkit.org/ )
2006-08-17 02:18:33
·
answer #1
·
answered by John J 6
·
0⤊
0⤋
Simply stated, you don't in PHP. PHP stands for PHP Hypertext Preprocessor. It processes the PHP files on the server before delivering information to the browser. As such PHP will not know what you've selected in a combobox until you have submitted.
Depending what you are trying to do you may be able to accomplish it by utilizing Javascript. It is possible to have your selection in a combobox determine what options you have in the remaining form for example. To do it without submit means using Javascript, ASP or any other script that runs clientside and then passing the values back to PHP.
2006-08-17 02:06:24
·
answer #2
·
answered by bill91173 3
·
0⤊
0⤋
You would use XMLHttpRequest after collecting the info using javascript (and also suppressing the form post/submit).
It's called AJAX.
2006-08-17 02:08:17
·
answer #3
·
answered by sheeple_rancher 5
·
0⤊
0⤋
you can put it in query string (via javascript), but you cannot execute it (requires php), so there is no use for that.
you're not refreshing to put something in query string, but to actually query the database (with or without parameters)
2006-08-17 02:04:58
·
answer #4
·
answered by Bruno 3
·
0⤊
1⤋
you should use Java Script and onFocus() you could call for even as combobox determination is carried out. in this you could call purposes to similar or different .js or .personal abode web page or any documents. yet in a special way of doing it really is AJEX technologies.
2016-11-05 00:15:32
·
answer #5
·
answered by ? 4
·
0⤊
0⤋
http://www.google.com/search?hl=en&lr=&q=combobox+value+in+query+string+without+page+refresh+in+PHP%3F
2006-08-17 02:10:33
·
answer #6
·
answered by malung786 4
·
0⤊
1⤋