Solved

How to create a hidden text field?

Posted on 2000-03-09
1
171 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
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…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

758 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

22 Experts available now in Live!

Get 1:1 Help Now