-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
In article <> , Chris wrote:
> I have the following code and am trying to have different values than
> what the user clicks on.
>
> print $query->scrolling_list (
> -name=>'forsale',
> -value=>['No','Yes'],
> -size=>2
> -multiple=>'false');
>
> Right now when I view my source in the browser it shows as
><SELECT NAME="forsale" SIZE=2 FALSE>
><OPTION VALUE="No">No
><OPTION VALUE="Yes">Yes
></SELECT>
>
> and I need it to be (values below are different)
><SELECT NAME="forsale" SIZE=2 FALSE>
><OPTION VALUE="">No
><OPTION VALUE="s">Yes
></SELECT>
>
> How would I change the print $query-> to allow this.
Read the CGI documentation about using -labels.
- --keith
- --
kkeller-
(try just my userid to email me)
AOLSFAQ=http://wombat.san-francisco.ca.us/cgi-bin/fom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (Darwin)
iD8DBQFAkv6ohVcNCxZ5ID8RAq3UAKCQ/OzVbu6uQEQQ/mCbeHvMK5M3KgCgi7yw
/cX54sBYILmJN8+kodsbjkc=
=qHAX
-----END PGP SIGNATURE-----