Solved

script help needed

Posted on 1998-07-01
5
158 Views
Last Modified: 2010-03-04
I have the following code inside a postcard script that was given to me, I want the text to come up against a white background, perhaps inside a table w/ a white background. Could you modify this part of the code so it will do that? Thanks in advance!

    print "<b>If the postcard is the way you want it, press the send button.</b>\n";
    print "<b>If you need to make changes, use the back button on your browser.</b>\n";
    print "<b>Please wait a few seconds for the postcard to be sent. Pressing the button more than once</b>\n";
    print "<b>will send additional postcards. During periods of high usage, the system may be</b>\n";
    print "<b>slower than usual. Thanks.</b><br><br>\n\n";
0
Comment
Question by:timshank
  • 2
  • 2
5 Comments
 
LVL 84

Expert Comment

by:ozo
Comment Utility
#this is more of an HTML wuestion than a Perl question
print '<TABLE><TR><TD BGCOLOR="white"><FONT COLOR="black">';
    print "<b>If the postcard is the way you want it, press the send button.</b>\n";
    print "<b>If you need to make changes, use the back button on your browser.</b>\n";
    print "<b>Please wait a few seconds for the postcard to be sent. Pressing the button more than
   once</b>\n";
    print "<b>will send additional postcards. During periods of high usage, the system may
   be</b>\n";
    print "<b>slower than usual. Thanks.</b><br><br>\n\n";
print '</FONT></TD></TR></TABLE>';
0
 
LVL 2

Accepted Solution

by:
tpryor earned 20 total points
Comment Utility
add this to the top...
<TABLE BORDER="3" CELLSPACING="2" CELLPADDING="1"
BGCOLOR "#FFFFFF"> <TR> <TD>

and this to the bottom of what you got...

</TD></TR></TABLE>

GL,
t
0
 

Author Comment

by:timshank
Comment Utility
Thank you, I'll try it, I understand the html but I didn't know how to express it inside a perl script.. this is all a learning process for me
0
 

Author Comment

by:timshank
Comment Utility
thanks, piece of cake
0
 
LVL 84

Expert Comment

by:ozo
Comment Utility
You can find documentation on the print function in
perldoc perlfunc
and documentation on string quoting operators in
perldoc perlop
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

743 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

15 Experts available now in Live!

Get 1:1 Help Now