Solved

werid output in the "input" of the form?

Posted on 2000-04-17
1
172 Views
Last Modified: 2010-03-05
in the perl file:

I have

$firstName = "a b c";


and

in the form, I put
print"<input type ='text' input name='firstName' value=$firstName >\n";

while I check the output of it, it only
show in the input text of $firstName as
"a" not "a b c", why?
0
Comment
Question by:syu2
1 Comment
 
LVL 16

Accepted Solution

by:
maneshr earned 50 total points
ID: 2724169
you have to print the line as follows...

print"<input type ='text' input name='firstName' value=\"$firstName\">\n";


NOTE: the \" and \" before and after $firstName. Without these quotes, HTML reads  value=a b c and therfore accepts only a.

With the quotes it will be read as value="a b c"

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

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…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

911 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

19 Experts available now in Live!

Get 1:1 Help Now