mailto tag in html generated with perl

K

kevin12345

Hi,
I have a few perl scripts that are generating html files. At the bottom
of the page I have links to contact the webmaster, however, when the
links are generated, they do not show the entire link.

Here is an example:

<a href="mailto:p[email protected]">Contact Webmaster</a>

When I open the html file, the link only wants to go to
"mailto:person.time.com" with no "@place"

Can anybody help?

Thanks,
Kevin
 
J

J. Gleixner

Hi,
I have a few perl scripts that are generating html files. At the bottom
of the page I have links to contact the webmaster, however, when the
links are generated, they do not show the entire link.

Here is an example:

<a href="mailto:p[email protected]">Contact Webmaster</a>

When I open the html file, the link only wants to go to
"mailto:person.time.com" with no "@place"

Can anybody help?

Look at the HTML that's actually generated, since you neglected to show
any perl code, I will only assume that you need to escape the @ when
calling print.

If you add:

use strict;

to your code, it may show you the error of your ways.
 
T

Tintin

Hi,
I have a few perl scripts that are generating html files. At the bottom
of the page I have links to contact the webmaster, however, when the
links are generated, they do not show the entire link.

Here is an example:

<a href="mailto:p[email protected]">Contact Webmaster</a>

When I open the html file, the link only wants to go to
"mailto:person.time.com" with no "@place"

Can anybody help?

You have an error on line 42 of your code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top