Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

hidden value

Posted on 2000-03-27
2
Medium Priority
?
186 Views
Last Modified: 2010-03-05
i have a script that submits values to itself but when
i try to add the hidden value here...  

       print start_form,
                              "Enter a number greater than 0  ",textfield('searc
h_string'),p,
hidden(-name=>'username',-value=>'$username'),
                              submit,

                              end_form;


and print it out with

$myCGI = new CGI;
$username = $myCGI->param('username');
print "username via param is $username<br>";
$username="$ENV{REMOTE_USER}";
print "username via remote user is $username<br>";  

i get
username via param is
username via remote user is boofulls
on the first page
and
username via param is $username
username via remote user is
after i hit submit

where am i going wrong?
all i want it to do i display the hidden value that i pass!

                                               
0
Comment
Question by:boofulls
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
binkzz earned 200 total points
ID: 2660331
For starters you have $username within single quotes, which means the system will take it literally. Try putting the $username within double quotes ("$username")

Tom
0
 

Author Comment

by:boofulls
ID: 2660374
that was it
thanks
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Six Sigma Control Plans

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question