|
-
Apr 23rd, 2002, 05:36 AM
#1
Thread Starter
Frenzied Member
Simple Dynamic Link
Hi, i want to create a CGI script that can be used for any url and any Site Name.
i came up with this :
VB Code:
#!/usr/bin/perl
##########################################
# Perl CGI Script © Copyright Wayne Pearsall
# Created April 2002
##########################################
print "<html> \n";
print "<HEAD> \n";
print "<Title> T.P.L. - Visiting Member Site </title> \n";
print "</head> \n";
print "<BODY background=\"/images/tplbg.gif\" bgcolor=\"#000000\" text=\"#FFFFFF\" link=\"#00CCFF\" vlink=\"#3399FF\" alink=\"#CCCCCC\" bgproperties=\"fixed\"> \n";
print "To Visit <B> $FORM{'SiteName'} </B> <BR>\n";
print "Please Click <a href=\" $FORM{'URL'} \"> HERE - $FORM{'URL'} </A> <BR>\n";
print "Dont Forget to bookmark <a href=\" $FORM{'URL'} \"> $FORM{'SiteName'} </A>. <BR> \n";
print "</body> \n";
print "</html> \n";
but i get ERROR 500 *ARGGHHHHHHHHHHHHHHHH*
can any 1 see anything that is rung?
( i only want it so i can have any 1 who runs a PSERVER but donesnt have a webpage able to use the CGI Script,
my intent was the user just called it
http://me.com/cgi-bin/nourl.cgi?URL=...Name=TheirName
but the FAMOUS! Error 500 , Any help is good help ( i hope lol)
Thanks,
Wayne.
-
Apr 23rd, 2002, 11:12 AM
#2
Black Cat
Add
Code:
print "Content-type: text/html\n\n";
before your other prints - I'm betting your error is "the CGI app misbehaved by not sending a complete set of http headers".
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|