[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: Email parsing
****** message to minivend-users from Larry Leszczynski <larryl@furph.com> ******
Hi Dan -
> Maybe some enhanced email checking may be in order for the future? :)
In the mean time, you can do it yourself - put something like this inside
the form in ord/checkout:
<input type=hidden name=mv_click value="Check Email">
[set Check Email]
[perl cgi]
my $email = $Safe{'cgi'}{'email'};
my $fixed = $email;
$fixed =~ s/\s//g; # remove whitespace
my $out = '';
if ( $fixed ne $email ) {
$out .= "mv_todo=return\n";
$out .= "mv_nextpage=ord/checkout\n";
$out .= "email=$fixed\n";
}
$out;
[/perl]
[/set]
This example only removes spaces, but you should get the idea. You could
also do fixups on a bunch of other variables within the same script.
There's documentation about mv_click and mv_check in the "Forms" section
of the MiniVend docs.
Larry Leszczynski
larryl@furph.com
--
furph, Inc. WWW/Unix/Windows Solutions 734-513-7763 (voice)
info@furph.com http://www.furph.com 734-513-7759 (FAX)
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list