Modifying the Default Lookup Fields

From: Lance Woodson (lance@cswnet.com)
Date: Thu Jul 06 2000 - 16:03:38 EDT


On the opening registration page, I've modified the default:

<INPUT TYPE="text" NAME="domain" SIZE="30" maxlength=67>

to

<INPUT TYPE="text" NAME="domain" SIZE="30" maxlength=63>
<SELECT NAME="extension">
     <OPTION VALUE=".com" SELECTED>.com
     <OPTION VALUE=".net">.net
     <OPTION VALUE=".org">.org
</SELECT>

where customers can pick from .com, .net, and .org. Then I went into
the lookup_domain function inside OpenSRS.pm and modified the default:

my $domain = lc $args->{domain};

to

my $domain = lc $args->{domain};
my $extension = $args->{extension};
my $domain = $domain . $extension;

but I keep getting "Invalid domain syntax for $domain". The value of
$extension is not getting passed to the lookup function. The
lookup_domain function should be seeing "domain.extension" but it's only
getting "domain". Am I doing something wrong?

Thanks,
Lance Woodson
Tier Networking, Inc.



This archive was generated by hypermail 2.1.3 : Tue Oct 19 2004 - 23:35:41 EDT