Need help on making <a href=""> tag active in cgi
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?
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>
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...
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
*** end of code ***
instead of re-inventing the wheel, just have a look here:
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)