[ic] zip search via admin/entry.html

Stefan Hornburg racke at linuxia.de
Wed Oct 13 03:44:27 EDT 2004


On 12 Oct 2004 23:07:56 -0700
Scott Andreas <joscan at comcast.net> wrote:

> hello list,
> 
> I'm adding a zip search for city state and zip automation into the
> admin/entry page. I have it searching the zips database and it pulls in
> the
> correct information much like the customer search function does. My
> problem
> is when I update the shipping funtion all the data for the user is
> removed
> on refresh. My code is...
> 
> 
> 
> [calc]
>  return unless $CGI->{customer};
>  %$Values = ();
>  $Values->{customer_id} = $CGI->{customer} eq 'NEW' ? '' :
> $CGI->{customer};
>  return;
> [/calc]
> 
> [calc]
>  return unless $CGI->{zip};
>  %$Values = ();
>  $Values->{zip_id} = $CGI->{zip};
>  return;
> [/calc]

Why do you reset the $Values namespace ? That calls for
trouble IMHO.

Bye
	Racke



-- 
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team



More information about the interchange-users mailing list