Solved

print the form in multiple lines

Posted on 2000-03-22
2
162 Views
Last Modified: 2010-03-05
I have the following example that I want to print to the web page (see below)

How can I print it with a single print command without printing each line in a single quotes?

<FORM NAME="goinside" METHOD="POST" ACTION="http://6.2.2.1/cgi-bin/user.pl">
<BR>
&nbspType Your Username (3-15 characters):
<BR>
<INPUT NAME="uname" TYPE="TEXT" MAXLENGTH=12>
<BR>
Type your Password (3-15 characters):
<BR>
<INPUT NAME="insideword" TYPE="PASSWORD" MAXLENGTH=22>
<BR>
<INPUT NAME="umail1" TYPE="SUBMIT" VALUE="Submit">
<BR>
If You're not registered yet, <BR>
type Your e-mail address:
<BR><INPUT NAME="umail" TYPE="TEXT" MAXLENGTH=100>
</FORM>

0
Comment
Question by:sstouk
2 Comments
 
LVL 84

Accepted Solution

by:
ozo earned 50 total points
Comment Utility
print <<END_HERE;
<FORM NAME="goinside" METHOD="POST" ACTION="http://6.2.2.1/cgi-bin/user.pl">
<BR>
&nbspType Your Username (3-15 characters):
<BR>
<INPUT NAME="uname" TYPE="TEXT" MAXLENGTH=12>
<BR>
Type your Password (3-15 characters):
<BR>
<INPUT NAME="insideword" TYPE="PASSWORD" MAXLENGTH=22>
<BR>
<INPUT NAME="umail1" TYPE="SUBMIT" VALUE="Submit">
<BR>
If You're not registered yet, <BR>
type Your e-mail address:
<BR><INPUT NAME="umail" TYPE="TEXT" MAXLENGTH=100>
</FORM>
END_HERE
0
 
LVL 6

Author Comment

by:sstouk
Comment Utility
I have found another way that works:

print qq{
<FORM NAME="goinside" METHOD="POST" ACTION="http://6.2.2.1/cgi-bin/user.pl">
<BR>
&nbspType Your Username (3-15 characters):
<BR>
<INPUT NAME="uname" TYPE="TEXT" MAXLENGTH=12>
<BR>
Type your Password (3-15 characters):
<BR>
<INPUT NAME="insideword" TYPE="PASSWORD" MAXLENGTH=22>
<BR>
<INPUT NAME="umail1" TYPE="SUBMIT" VALUE="Submit">
<BR>
If You're not registered yet, <BR>
type Your e-mail address:
<BR><INPUT NAME="umail" TYPE="TEXT" MAXLENGTH=100>
</FORM>
};



0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
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…
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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

763 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

7 Experts available now in Live!

Get 1:1 Help Now