[thelist] [php] Dumb form question

David Bindel dbindel at austin.rr.com
Fri Nov 29 22:33:01 CST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> > Is there any difference in pulling values out of
> > a select form element than an input from element?

> absolutely

> with a select element, the form user has limited
> choices, and you can be sure that the submitted
> value is one of the given options

> with an input element, assuming you meant a text
> element, the form user can type any old thing, and
> you don't know what you'll get, so you have to
> validate it

> with an input radio or checkbox element, it might
> not even be submitted

> is that what you were hoping to hear?

No, I believe he wanted to know if there was any difference between
input and select form elements in accessing the resulting request
variables.

The correct answer to that question is NO.  There is no difference.
They will both return the value of the form element upon submission.

HTH,
David Bindel

-----BEGIN PGP SIGNATURE-----
Version: PGP 7.0.4

iQA/AwUBPeg/On6TtTuKuQdTEQKQIgCglkMh0H4b3FjxtCorU6/VgS+uOG0AoIYr
Gaeu+NshLdxlYH9jgepvrJGD
=ZWnM
-----END PGP SIGNATURE-----

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.423 / Virus Database: 238 - Release Date: 11/25/2002




More information about the thelist mailing list