Good afternoon,
A4d = 3.0b13
I have a method to put states into a select statement as follows:
kNAStates is defined as follows: "AB - Alberta";"AK - Alaska";...
<%get global array("kNAStates";$States)%>
<SELECT NAME="State">
<OPTION VALUE="" SELECTED>-Pick a State/Province- </OPTION>
<%for($i;1;size of array($States))%>
<OPTION VALUE=<%=substring($States{$i};1;2)%>><%=$States{$i}%</OPTION>
<%end for%>
</SELECT>
HTML output from this looks as follows:
<SELECT NAME="OtherState">
<OPTION VALUE="" SELECTED>-Pick aState/Province- </OPTION>
<OPTION VALUE=AB>AB - Alberta</OPTION>
<OPTION VALUE=AK>AK - Alaska</OPTION>...
The extra lines in the HTML have 5 tabs followed by a carriage return. Is there a better way to do this to eliminate the extra space? Or do I just live with this?
Jim Redfield
