Formularausgabe direkt als Link

Hallo,

tja, ich stehe derzeit ein wenig an …

ich habe ein Formular (cgi-linkliste/suchmaschine) mit folgendem (gekürztem) Inhalt:
________

________

wobei „_nxcbrfjfjf02“> eine Kategorie der Linkliste darstellt. Ich möchte einen Link per Browser auf genau diese Kategorie erstellen (ohne die Auswahlbox).

Kann mir jemdand die genaue url ermitteln / erstellen???

zb: http://www.url.com/cgi-bin/url_find.cgi&value="_nxcb…">
(oder so ähnlich -ich bekomm’s einfach nich hin :frowning:

D A N K E !!!
Mike

Ergänzung - das cgi script
ERGÄNZUNG:

#! /usr/bin/perl

***********************************************************************

url_find.pl

URL database output script

copyright 1998 SPAK Dynamics

This script may be distributed freely

The content below the line labeled „#### SCRIPT CODE ####“ must NOT be changed!

***********************************************************************

#url database location
$dbase =’/var/www/html/site107/html/cgi-bin/url_base.txt’;

#send mail to this e-mail address
$mail_to=‚[email protected]‘;

#main page url or page url to return to
$return_url=‚http://www.psilinks.com‘;

#The title of your directories search engine; replace Psi-Links with the name you gave to your directory search engine
$title=‚Psi-Links‘;

#background color code of the page; default = soft yellow
$background_color="#6600FF";

SCRIPT CODE

The coding below must NOT be changed!

Error Output Message

sub error
{ print „Content-type: text/html\n\n“;
print „Input Error\n“;
print " Input Error \n";
print "

\n";
print „An error occured during the process; please use the back button, and try again.
\n“;
print "If the error persists, please inform the webmaster.
";
print „“;
exit;
}

Read the input from the form and place it into $form_info

read(STDIN, $form_info, $ENV{‚CONTENT_LENGTH‘});

Split the name-value pairs from the form and place them in the list „pairs“

@pairs = split(/&/, $form_info);
#split pair info into $name and $value array; clean up the control charactors
foreach $pair (@pairs)
{
($name, $value) = split(/=/, $pair);
$value =~ tr/+/ /;
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack(„C“, hex($1))/eg;
$FORM{$name} = $value;
}
#split keywords into the list keyword_list
@keyword_list=split(/ /,$FORM{‚key_it_in‘});
$form_index_1=$FORM{‚index_1‘};
$form_input_logic=$FORM{‚input_logic‘};
#get number of keywords
$number_keywords=@keyword_list;
print „Content-type: text/html\n\n“;
print „Search Output\n“;
print" $title Search Results „;
print“

Click here to return to the main page.

„;
unless (open (DATA_BASE,“$dbase")) {&error;}
@all_records = ;
close (DATA_BASE);
$total_records_found=0;
$zargformat=0;
for ($count_2=0; $count_2Site Name: The Shareware Place
";
print "http://www.sharewareplace.com
";
print " Description: Our software library has all major category titles. Direct search and download.

„;
print“

„;
}
#Get individual records from array all_records
$total_lines=@all_records; #determine # of lines in the database
$count_record_line=0; #Start with record 0
while ($count_record_line „;
print““;

print"";

$total_records_found++;
$print_output=@record[2];
$sub_string=substr($print_output,10);
$print_output=@record[3];
$url_string=substr($print_output,9);

print "Site Name: $sub_string
";

$print_output=@record[3];
$sub_string=substr($print_output,9);
print "$sub_string
";
$print_output=@record[4];
$sub_string=substr($print_output,17);
print " Description: $sub_string

„;
print“

„;
} # END if ($record_found==1)
}# end while ($count_record_line10)
{print“

Click here to return to the main page.";}

print"";
print"";
print"";

print"";

hi,

der folgende link sollt das machen was du dir vorstellest:

www.url.com/cgi-bin/url\_find.cgi?input\_logic=or&key\_it\_in=zip&index\_1=\_nxcbrfjfjf02

solltest du noch mehr von diesen formlinks erstellen wollen,
empfehle ich dir, method von post auf get umzustellen, dann
bekommst du den link automatisch.

cu locke

Hi Locke,

eigentlich wollt ich dich schon „küssen“ & und um den „Hals fallen“ - leider ist die Ausgabe nicht korrekt.

ich geb Dir mal die original url:
http://www.erotiklines.at/cgi-bin/url_find.cgi?input…

es dürfte eigentlich nur ein Datensatz per Kategorie auftauchen - es werden aber auch alle andern mit ausgegeben (bei Netscape)
(bei Explorere keiner) :frowning:

noch andere Kategorien:

DANKE
Mike

ReHi Locke,

also folgende Kategorie:

müßte so aussehen: *siehe Anhang
danke
Mike

Anhang:

Search Output Psi-Links Search Results

Click here to return to the main page.

Site Name: Better Business Bureau
http://www.bbb.org/

Description: Services feature alerts and news, reports, and a library of publications.

1 records found

DANKE !!!
hi ,

ich habs -danke an alle die mir geholfen haben !!!

cu
Michi