Reply to Re: $_SERVER['PHP_SELF'] Question

Your name:

Reply:


Posted by Lars Eighner on 10/20/07 08:29

In our last episode, <jQhSi.2217$CN4.2117@news-server.bigpond.net.au>, the
lovely and talented Kye broadcast on comp.lang.php:

>> Have a page which takes the value in $_POST['dropdown'] and performs
>> another SQL query of the desired results.
>>
>> It may be this page (i.e. if $_POST['dropdown'] is set, or a different
>> page, depending on your needs.

> Is it possible to make the select element of the form automatically execute
> the "<INPUT type='submit' value='Go'>"; statement rather than having a
> button to click on???

Again, this is an html question, having nothing to do with php. The answer
is "no, not in html." That is because html will not "do" anything. It is
markup. You can use javascript to make ENTER in some form field submit the
form, but this won't work in some browsers so if it "rather than having a
button" your site will alway be broken to people who don't have the "right"
browser, "properly" set. Google is an example of ENTER for submit AND
making a button available. Many commercial sites do use script to submit
when an option is selected --- for that they lose customers who are not
using the "right" browser and those who become frustrated by the
slipperiness of dropdwon boxes. In any case, it is all client side and php
has nothing to do with it.

--
Lars Eighner <http://larseighner.com/> <http://myspace.com/larseighner>
Countdown: 458 days to go.
What do you do when you're debranded?

[Back to original 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

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