Solved

How to create a hidden text field?

Posted on 2000-03-09
1
176 Views
Last Modified: 2010-03-05
print p("Book Code: ", textfield("book", $bookcode));

How to modify the above code to create a hidden text field?
Or how to make a  variable name "book" to store the value of perl variable $bookcode?
0
Comment
Question by:nelsonyuen
1 Comment
 
LVL 3

Accepted Solution

by:
guadalupe earned 10 total points
ID: 2600393
If you using CGI.pm this is the way:

        print $query->hidden(-name=>'hidden_name',
                             -default=>['value1','value2'...]);

If not then I don't understand the code above... Tell me what your using or show me some more code.  If you want to do it by hand try this:

print qq(<input type="hidden" name="book" value="$bookcode">);

The qq() is just double quotes but you can use this method so as not to have to escape all the double quotes the string may contain.



0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
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…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

867 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now