<P> Daniel, <P dir=ltr style="MARGIN-RIGHT: 0px"> I'm assuming you mean that you want your three crud parameters passed through, in which case, your intuition at the end of your message is correct. Remember that HTTP is by default stateless, meaning that when the form that was output by first() is submitted, your script has no memory that is was ever run before. It only knows what was in the latest request. So you need to include more hidden fields in your form in order to preserve them between invocations of the script:<BR> <BR><input type="hidden" value="$crud1" name="crud1"><BR><input type="hidden" value="$crud2" name="crud2"><BR><input type="hidden" value="$crud3" name="crud3"></P> <P>Note that by default, $variables expand in "Here" documents the same as in double-quoted literals. </P> <P>- John<BR></P> <P> <B><I>Daniel Falkenberg <[EMAIL PROTECTED]></I></B> wrote: <BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Hello All,<BR><BR>I am having a little bit of trouble with HTML and perl. I want to be<BR>able to parse variable from some HTML code where a user hits a submit<BR>button and the data they entered from that from should be parsed to the<BR>next sub. At the moment I am using the following code...<BR><BR>$action = param("action");<BR>$crud1 = param("crud1");<BR>$crud2 = param("crud2");<BR>$crud3 = param("crud3");<BR><BR>if ($action =~ /first/) {first();}<BR>elsif ($action =~ /second_sub/) {second_sub();}<BR>else{ first();}<BR><BR>sub first {<BR><BR>print<<HTML;<BR> <FORM><BR>#User enters data in some text boxes here...<BR><INPUT type=hidden value=second_sub name=action><BR><INPUT type=image src="http://us.f144.mail.yahoo.com/ym/images/submit.gif"><BR></FORM><BR><BR>HTML<BR><BR>}<BR><BR># Script is now taken to second_sub();<BR><BR>sub second_sub {<BR><BR>print $crud1, $crud2, $crud3;<BR><BR>}<BR><BR>.... but for some reason the the data from first() is not being placed<BR>into second_sub(); Should I be adding some more hidden HTML tags in the<BR>first(); sub?<BR><BR>Any help on this would be greatly appricated.<BR><BR>Regards,<BR><BR>Dan</BLOCKQUOTE>
__________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]