[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] mv_data_function and blank fields not working
On Wed, Jun 05, 2002 at 05:12:56AM -0700, Tim Nelson wrote:
> I have a form that is using mv_data_function to update
> fields in the userdb. The field allow_cat has a list
> of categories the user can buy from. I want to
> be able to have a blank field mean "allow all
> categories". Problem is I am using a <select> list
> and collecting the data using mv_form_profile, but
> when I set the CGI variable to "" IC won't
> overwrite the existing value. Any I missing
> something obvious here? Thanks.
>
> For example ... I have
> <INPUT TYPE=HIDDEN NAME="mv_form_profile" VALUE="Check
> It">
>
> [set Check It]
> [perl]
> $CGI->{allow_cat} = "Tools"; # this line works fine.
> $CGI->{allow_cat} = ""; # doing this won't update the
> field.
The empty string is going to cause you more pain in IC and
HTML than it's worth. Better to create a dummy category
'ALL'.
> ....
> ....
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
> _______________________________________________
> interchange-users mailing list
> interchange-users@interchange.redhat.com
> http://interchange.redhat.com/mailman/listinfo/interchange-users
--
Christopher F. Miller, Publisher cfm@maine.com
MaineStreet Communications, Inc 208 Portland Road, Gray, ME 04039
1.207.657.5078 http://www.maine.com/
Content/site management, online commerce, internet integration, Debian linux