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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding the length of the value

Status
Not open for further replies.

pielz

Programmer
Nov 12, 2002
8
US
I'm getting the value of the password and putting in the input box but if they don't then it's supposed to come up blank which it isn't. It's some how find a space and brings up a * in the input box. So i was wondering how i would go about finding the length of the password so i could test it to be blank or to place the password in cause when they first sign up it has to be at least 4 characters long. This is what i'm working around. If ya can help me out thanks i greatly appreciate it!

<input type=&quot;password&quot; name=&quot;Password&quot; id=&quot;Password&quot; size=&quot;25&quot;>
<xsl:attribute name=&quot;value&quot;>
<xsl:value-of select=&quot;Password&quot;/>
</xsl:attribute>
</input>
 
<xsl:if test=&quot;Password[string-length(text()|*)<5&quot;>
.....

 
<xsl:if test=&quot;Password[string-length(text()|*)&lt;5&quot;>
.....

 
Sorry, the less than symbol is being converted from the entity reference. You need to encode the less than sign as & followed by little letters &quot;l&quot; &quot;t&quot; semi-colon.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top