Hi,
I have a perl cgi web page. i also have a text file containing varibales such as
$test1='hello';
$test2='jim';
in my perl cgi page i require this text file
require "textfile.txt"
and then i can output the contents of the file as i now have access to the variables contained within the file..
so i can print "$test1" -- which will output hello to the screen..this works fine the problem occurs when the variable contains html code
e.g
$test3 = "this is just a test <b> help me </b> please";
when i print this to screen i will get help me in bold - which isnt what i want i actually want the <b> </b> to be outputted to screen - the browser is executing the HTML code when i just want to print it to screen.. has anyone got any ideas how i can do this?
thanks for your time
I have a perl cgi web page. i also have a text file containing varibales such as
$test1='hello';
$test2='jim';
in my perl cgi page i require this text file
require "textfile.txt"
and then i can output the contents of the file as i now have access to the variables contained within the file..
so i can print "$test1" -- which will output hello to the screen..this works fine the problem occurs when the variable contains html code
e.g
$test3 = "this is just a test <b> help me </b> please";
when i print this to screen i will get help me in bold - which isnt what i want i actually want the <b> </b> to be outputted to screen - the browser is executing the HTML code when i just want to print it to screen.. has anyone got any ideas how i can do this?
thanks for your time