[ic] mv_data_function and blank fields not working

Ed LaFrance interchange-users@interchange.redhat.com
Wed Jun 5 10:10:01 2002


At 05:12 AM 6/5/2002 -0700, you 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.
>....
>....

<input type=hidden name=mv_update_empty value=1>

- Ed L.



>____________
>interchange-users mailing list
>interchange-users@interchange.redhat.com
>http://interchange.redhat.com/mailman/listinfo/interchange-users

===============================================================
Increase profits from your Interchange store...
http://www.newmediaems.com/cgi-bin/nm/software_fus.html
===============================================================
New Media E.M.S.               Software Solutions for Business
463 Main St., Suite D          eCommerce | Consulting | Hosting
Placerville, CA  95667         edl@newmediaems.com
(530) 622-9421                 http://www.newmediaems.com
(866) 519-4680 Toll-Free       (530) 622-9426 Fax
===============================================================