in reply to Re: how to put perl variables inside html tags
in thread how to put perl variables inside html tags

I am outputtin this html page thru ther perl script by using print <<HTML here all html code HTML i tried putting <a href="mailto:$afld[3]">$afld[3]</a> but even it didn't work although when i am removing <a> </a> totally, and just printing $afld[ +3] its printing,but without a link.

Replies are listed 'Best First'.
Re: Re: Re: how to put perl variables inside html tags
by dvergin (Monsignor) on Jul 28, 2001 at 03:57 UTC
    Odd... Somewhere along the line you have done something you are not accounting for. At about this point, I would stick the following into the middle of your 'print <<HTML' block:
    print <<HTML ...stuff that's already there ------BEGIN TEST------- Here is afld3: |$afld[3]| <a href="mailto:someone@somewhere.com">mail link 1</a> <a href="mailto:someone@somewhere.com">$afld[3]</a> <a href="mailto:$afld[3]">mail link 2</a> <a href="mailto:$afld[3]">$afld[3]</a> **What we want** -------END TEST------- ...more stuff that's already there HTML
    Then run it and look at the html code this prints (not just what shows up visible in the browser) to see what is happening.