dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: Need help on making <a href=""> tag active in cgi

  1. #1
    Join Date
    Jun 2004
    Location
    Montreal
    Posts
    8

    Need help on making <a href=""> tag active in cgi

    Hello,

    I have a cgi script that send a form when a user click on the submit button. I'm trying to make the <a href="website.html">click here</a> link active.

    Not sure how to code it.

    This is my part of my script:

    ********
    print MAIL " Visit our site at <a href=\"website.html\">click here</a> ";
    **********

    When i received the form, the website.html link is not active and it looks like the above. Active as in I can click on the "click me" text and it will bring me to the website.html page.

    Can someone help me with this?

    Thanks.


    Cheers,

    Chi.

  2. #2
    Join Date
    Nov 2003
    Posts
    655
    I'm guessing that you actually see it without the backslashes:
    Visit our site at <a href="website.html">click here</a>

    Not like this:
    Visit our site at <a href=\"website.html\">click here</a>

    Right?

    If the message is not being sent as being HTML formatted, or if your e-mail client doesn't display e-mail using HTML formatting, then you'll get what you see...

  3. #3
    Join Date
    Jun 2004
    Location
    Montreal
    Posts
    8
    How do I format it for HTML?

    Here is some of the code:

    *** start of code ***

    open (MAIL, "| $mailprog -t") || &print_error("<LI>Internal Error: mail program not available.</LI>");

    print MAIL "Thank you for visiting my site.";

    print MAIL "Visit my site by <A href=\"website.html\">click here</A>.\n\n";

    print MAIL "If you have specific questions, please feel free to contact us. \n\n";

    more "print Mail" command then
    close MAIL;

    *** end of code ***

  4. #4
    Join Date
    Jan 2003
    Location
    USA
    Posts
    687
    instead of re-inventing the wheel, just have a look here:

    http://tlc.perlarchive.com/articles/perl/at0001.shtml

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles