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)
In reply to Not getting clean HTML using print by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |