Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Maintain spacing

Status
Not open for further replies.

ZOR

Technical User
Jan 30, 2002
2,963
GB
I am trying to maintain the tabular (if I can use that word)
presentation of $text1. It closes the gap between the 6 and Q when reproduced. Many thanks

$txt1= "Fuji Digital Betacam DBC-6 Qty = ".$_SESSION['DBC'][1];
 
Okay, fixed thanks.
 
ZOR:
I think this would be a good opportunity to point out to you that the entire reason this site exists is to provide a venue in which computer professionals could share experience.

With that in mind, it is generally considered polite that when one asks a question and then answers it himself, he share his answer in the forum. You might one day be able to help another member.

Also, the questioner does not look like he's just leeching off his fellow members.

Want the best answers? Ask the best questions!

TANSTAAFL!!
 
A tabular might be: \t
though, if you wish to have many spaces after each-other, " " will not work.

You might then consider using htmlentities:  

"    "

Olav Alexander Mjelde
Admin & Webmaster
 
Many thanks Olav.
I managed to solve the onscreen issue with \t.
However my biggest problem at the moment is getting alignment of columns in email. Basically I am filling the body of an email with line by line contents of session variables. I had to try and hand space some 300 lines with could appear in an email. They are far from acceptable. If I could use courier fonts from start to end my problem would be solved. I am now trying to look at any other methods, even whether I could populate them into an Excel page and email that as an attachment, or whether I can generate an HTML page and send that. All because of alignment. I think I will look at the HTML side first, as programs like Excel are sometimes strapped down by IT.
If you know any links to follow I would be greatful. Thanks again.
 
I'd use tables in the HTML page, and use HTML for the e-mail. Creating an attachment would work also, but I think HTML would be a lot easier.
 
Thanks. I think I will give HTML a try, although I have read numerous posting on the web how open it is to hacking. There again what is safe?

Presumeably I stick the html name in the mailbody???

Many thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top