[thelist] Perl Form to PHP Form

Jeff Wilhelm jeffwilhelm2 at hotmail.com
Fri Jul 12 11:57:00 CDT 2002


exactly :)


----- Original Message -----
From: "Shashank Tripathi" <admin at shanx.com>
To: <thelist at lists.evolt.org>
Sent: Friday, July 12, 2002 11:46 AM
Subject: RE: [thelist] Perl Form to PHP Form


> Ok.
>
>
>     ANDREW WROTE:
>
>     | the link is
>     | http://www.punterspower.co.uk/cgi-bin/whois.pl
>     | just the domain.co.uk is all I want :(
>
>
>     JEFF INTROSPECTED:
>     | A user goes to
>     | http://www.punterspower.co.uk/cgi-bin/whois.html     | and
>     | types in a domain. A list is returned, listing either
>     ....snippetty snip snip.....
>
>
> So, Andrew, if this is what you want, you could try this.
>
> 1. Let us say I try to check for the domain "shanx". Your whois.pl gives
> me this result:
>
>     shanx.com Taken
>     shanx.co.uk Available Order Now
>     shanx.biz Available Order Now
>     shanx.info Available Order Now
>
>
> 2. The "Order Now" links are like this:
>
>     http://www.punterspower.co.uk/order/order1.php?shanx.co.uk
>
>
> 3. You should change your whois.pl program to draw the link as follows:
>
>     http://www.punterspower.co.uk/order/order1.php?url=shanx.co.uk
>
>     (Notice the "url=" after the order1.php)
>
> 4. Once that is done, in your order1.php, just check for the value of
> "url", e.g.,
>
>     <?
> echo "$url";
>     ?>
>
>
> If for some reason, you cannot change your whois.pl, then order1.php
> should be as follows:
>
>
>     // Get only the part AFTER the question mark
>     $alliwantis = substr(stristr($REQUEST_URI, "?"), 1);
>     echo $alliwantis;
>
> Hope this is useful.
>
> -Shanx.
>
>
>
> --
> For unsubscribe and other options, including
> the Tip Harvester and archive of thelist go to:
> http://lists.evolt.org Workers of the Web, evolt !
>



More information about the thelist mailing list