Browsers will remove white space by default. For force multiple spaces us   but be warned that browsers use proportional fonts and so 5 spaces will not be equal width with 5 characters.
http://www.sightspecific.com/~mosh/WWW_FAQ/nbsp.html
You would going to need to scan and replace all blanks in field_name with   (yes, one blank character will need to become 5 characters in the field_name)
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Darryl Freinkel
Sent: Friday, June 24, 2011 11:25 AM
To: web400@xxxxxxxxxxxx
Subject: [WEB400] How do I preserve leading blanks in fields - Using CGIDEV2.
I am new to CGIDEV2 and have gotten a few programs up and running quickly.
Kudo's to Giovanni and company.
However, I have a new problem. The 1 field has alpha numeric data that is right justified example __name. When the HTML gets the value, it strips all the leading blanks displaying name__.
How do I preserver the leading blanks?
I tried %20/%field_name%/ and /%%20field_name%/ which produced the wrong results.
TIA
Darryl Freinkel
Assignment 400 Group, Inc.
Tel: 770.321.8562 ext 111 | Fax 770.321.8562 | 2247 La Salle Dr, Marietta GA, 30062, USA | PO Box 72556, Marietta, GA 30007-2556
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/web400.
As an Amazon Associate we earn from qualifying purchases.