Hi folks. I'm new to CGI, and I'm trying to get a page refresh after 3 seconds. From the CGI.pm docs, it looks like I should be able to do an http-equiv tag like so:
start_html(-title=>"Title",
-author=>'a@b.c',
-head=>meta({-http_equiv=>'Refresh',
-content=>'3;url=http://internalserver/phil/2.pl'}),
-BGCOLOR=>'tan');
Unfortunately, this produces:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML><HEAD><TITLE>Title</TITLE>
<LINK REV=MADE HREF="mailto:a%40b.c">
</HEAD><BODY BGCOLOR="tan">
It's ignoring my META tag, and I can't figure it out.
The html that should be generated is something akin to:
<META HTTP-EQUIV="Refresh" CONTENT = "seconds;url">
Alternatively, if there's a way to use the start_html method to create your header, yet add a tag to it (like above) as a scalar, that would be sweet also.
Thanks in advance.
-rev
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.