Hi all, I would like print the values using a perl program. The data entered in the form will be within iframe tag. Please cut this html code and provide to write a small perl program to catch values.
<HTML> <HEAD> <title>Say....</title><script language="JavaScript" type="text/javascr +ipt"> <!-- // --> </script> </head> <BODY TEXT="#000000" BGCOLOR="#EFF3FC" leftmargin="0" topmargin="0" ma +rginwidth="0" marginheight="0" LINK="#0000CC" VLINK="#0000CC" ALINK=" +#0000CC"> <A NAME=pagetop></A> <TABLE BGCOLOR="#FFFFFF" BORDER=0 WIDTH="100%" CELLSPACING=0 CELLPADDI +NG=2> <TR BGCOLOR="#ABABAB" > <TD ALIGN=left> </TD> <TD ALIGN=right><b></b></TD> </TR> <TR> <TD valign="bottom" BGCOLOR="#88A2E2" height="29"> <FORM name=compose action="one.cgi" METHOD=POST ENCTYPE="multipart/for +m-data"> <STYLE TYPE="text/css"> TABLE#tblCoolbar { background-color:threedface; padding:1px; color:menutext; border-width:1px; border-style:solid; border-color:threedhighlight threedshadow threedshadow threedhighl +ight; } .cbtn { height:18; BORDER-LEFT: threedface 1px solid; BORDER-RIGHT: threedface 1px solid; BORDER-TOP: threedface 1px solid; BORDER-BOTTOM: threedface 1px solid; } .txtbtn {font-family:tahoma; font-size:70%; color:menutext;} </STYLE> <script LANGUAGE="JavaScript"> function button_over(eButton) { eButton.style.backgroundColor = "#B5BDD6"; eButton.style.borderColor = "darkblue darkblue darkblue darkblue"; } function button_out(eButton) { eButton.style.backgroundColor = "threedface"; eButton.style.borderColor = "threedface"; } function button_down(eButton) { eButton.style.backgroundColor = "#8494B5"; eButton.style.borderColor = "darkblue darkblue darkblue darkblue"; } function button_up(eButton) { eButton.style.backgroundColor = "#B5BDD6"; eButton.style.borderColor = "darkblue darkblue darkblue darkblue"; eButton = null; } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ var isHTMLMode=false function document.onreadystatechange() { idContent.document.designMode="On" } function cmdExec(cmd,opt) { if (isHTMLMode){alert("Please uncheck 'Edit HTML'");return;} idContent.document.execCommand(cmd,"",opt);idContent.focus(); } function setMode(bMode) { var sTmp; isHTMLMode = bMode; // alert(bMode); if (isHTMLMode){sTmp=idContent.document.body.innerHTML;idContent.d +ocument.body.innerText=sTmp; //alert(sTmp); } else {sTmp=idContent.document.body.innerText;idContent.document.bo +dy.innerHTML=sTmp;} idContent.focus(); } function setSubmit(bMode) { var sTmp; isHTMLMode = bMode; if (isHTMLMode) { sTmp=idContent.document.body.innerHTML; alert(sTmp); } } </script> <iframe width="542" id="idContent" height="350"></iframe> <br> <input type="submit" name ="HERE" value="HERE"> </FORM></BODY></HTML>
Thanks

Edit: Added <code> tags. larsen


In reply to How can i catch the values within iframe tag using perl by surps

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.