Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
the output page is ok but when i do with cgi programming and code looks like:<html> <head> <title> form </title></head> <body bgcolor="red"> <form> <input type="text" name ="foo" value="bar"/> <select name="sport"> <option> water balloon shotput</option> <option> 17-legged race</option> </select> <P>choose ur fav. types of wrestling:</P> <input type ="checkbox" name ="wrestling" value ="mud"/>mud<br /> <input type ="checkbox" name ="wrestling" value= "jello" />jello<br /> </form> </html>
the page is not clean and the print commands and the first two lines r also appearing.how do i remove this?? VAIBHAV#!/usr/bin/perl -w print "content-type:text/html\n\n"; print "<html><head><title> form </title></head>; print "<body bgcolor="red">"; print "<form> <input type="text" name ="foo" value="bar"/>"; print "<select name="sport">"; print "<option> water balloon shotput</option>"; print "<option> 17-legged race</option>"; print "</select>"; print "<P>choose ur fav. types of wrestling:</P>"; print "<input type ="checkbox" name ="wrestling" value ="mud"/>mud<br +/>"; print "<input type ="checkbox" name ="wrestling" value= "jello" />jell +o<br />"; print"</form>"; print "</html>;"
update (broquaint): added formatting and changed title (was NOT gettin clean page)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Not getting clean HTML using print
by gjb (Vicar) on Jul 03, 2003 at 12:18 UTC | |
by ctilmes (Vicar) on Jul 03, 2003 at 13:06 UTC | |
|
Re: Not getting clean HTML using print
by tcf22 (Priest) on Jul 03, 2003 at 13:16 UTC | |
|
Re: Not getting clean HTML using print
by JoeJaz (Monk) on Jul 03, 2003 at 14:37 UTC |