Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

printing html

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
I want my Perl script to output a HTML page upon submitting a form (with a nice table, some text and colou). How can I do this. Can i do something like this:

print thankyou.htm()

????
 
You mean you want to just display a previously written HTML page? If so, do this:

Code:
print "Location:[URL unfurl="true"]http://yourURLhere.com";[/URL]

If you want that script to generate HTML, the easiest way to print a large block is to use the "here" syntax.

Code:
print <<END_HTML;
All of your HTML goes here
END_HTML

Make sure that there is nothing after the second END_HTML - otherwise, your script will throw you weird errors that are hard to debug unless you know that the END_HTML has to be on a line by itself, with nothing after it. It also cannot end with a semicolon.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top