Results 1 to 2 of 2

Thread: Simple Dynamic Link

  1. #1

    Thread Starter
    Frenzied Member wpearsall's Avatar
    Join Date
    Feb 2002
    Location
    England / UK
    Posts
    1,065

    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:
    1. #!/usr/bin/perl
    2. ##########################################
    3. # Perl CGI Script © Copyright Wayne Pearsall
    4. # Created April 2002
    5. ##########################################
    6.  
    7. print "<html> \n";
    8. print "<HEAD> \n";
    9. print "<Title> T.P.L. - Visiting Member Site </title> \n";
    10. print "</head> \n";
    11. print "<BODY background=\"/images/tplbg.gif\" bgcolor=\"#000000\" text=\"#FFFFFF\" link=\"#00CCFF\" vlink=\"#3399FF\" alink=\"#CCCCCC\" bgproperties=\"fixed\"> \n";
    12. print "To Visit <B> $FORM{'SiteName'} </B> <BR>\n";
    13. print "Please Click <a href=\" $FORM{'URL'} \"> HERE - $FORM{'URL'} </A> <BR>\n";
    14. print "Dont Forget to bookmark <a href=\" $FORM{'URL'} \"> $FORM{'SiteName'} </A>. <BR> \n";
    15. print "</body> \n";
    16. 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.
    Wayne

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    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
  •  



Click Here to Expand Forum to Full Width