in reply to Problem with form submission and redirect
Since you've already been given the solution, I want to put in a few words on style.
First of all, you can avoid backslashitis by using the quotelike operators that let you use any character as quote terminator:
print qq!<p><input type="radio" name="type" value="admin">\n!; Better yet, if you use an opening curly, bracket, paren or such, the terminator will be a closing one: print qq{<p><input type="radio" name="type" value="admin">\n}; However, please, please avoid rows of print statements. Use here documents instead.print <<"EOT"; Content-type: text/html <html> <head> <meta http-equiv="refresh"content="0;url=http://mail.$domain/cgi-bin/s +qwebmail"> </head> </html> EOT
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Problem with form submission and redirect
by Arcanum (Sexton) on Aug 26, 2002 at 17:05 UTC | |
by talexb (Chancellor) on Aug 26, 2002 at 18:15 UTC | |
by Anonymous Monk on Aug 26, 2002 at 23:05 UTC | |
by Anonymous Monk on May 10, 2013 at 06:37 UTC |