i'm sure i'm overlooking something really trivial, but i can't understand what's happening...hoping someone can help (and forgive the elementary nature of this post!!)
my code looks like:
1 while (my $dbpass = $sth->fetchrow_arrayref)
2 {
3 ($UIDholder, $LNholder) = @{$dbpass};
4 }
5 print p($UIDholder); #checking value of UIDholder
6 if (length $LNholder == 0) {
7 print p($UIDholder); #checking value of UIDholder
8 print p("Please continue on to the next page to complete the r
+egistration process.");
9 print '<form action="ti_newprofile.pl">';
10 print '<input type="hidden" name="UIDholder" value="$UIDholder"
+>';
11 print '<input type="submit" value="Continue"></form>';
and the source code for the resulting page looks like this:
<form action="ti_newprofile.pl">
<input type="hidden" name="UIDholder" value="$UIDholder">'
<input type="submit" value="Continue">'
</form>
when i print $UIDholder at lines 5 and 7, it holds the correct value.....why is the reference printing at line 10? i've tried both value=$UIDholder and value="UIDholder", and neither works.
again, my apologies for the simplistic nature of this question - i'm probably just too tired!!
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.