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!

newbie question re input text fields

Status
Not open for further replies.

Daithi

Programmer
Feb 17, 2002
5
AU
Hi,
I have an ASP that creates a record set and some of the field values are used to populate text input fields on a form e.g.
<%
addr = rs(&quot;Address1&quot;)
Response.Write(addr)
%>
<td width=&quot;75%&quot; colspan=&quot;5&quot;><input name=&quot;address&quot; size=&quot;55&quot; value=<%=addr%>></td>

My problem is that the <%Response.Write(addr)%> displays something like 17 Maple Drive so I know the full address string is there. However the input text field will only show 17, the rest is missing? There is obviously something I don't know here can anyone enlighten me?
Thanx:)
 
Make sure you have the quotes around your value field other wise it will think the value has ended at the space.

Example:

<input type=&quot;text&quot; name=&quot;address&quot; value=&quot;<%= address %>&quot;>
 
first
<td width=&quot;75%&quot; colspan=&quot;5&quot;><input name=&quot;address&quot; size=&quot;55&quot; value=&quot;<%=addr%>&quot;></td>

need to put the &quot; &quot; around the var.

second
<input type=&quot;text&quot; name=&quot;address&quot; value=&quot;<%=addr%>&quot;></td>

try that and let me know if it works.



I help at your own risk, if I brake it sorry! But if I fixed it, let me know with a
star.gif
[thumbsup2]
admin@onpntwebdesigns.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top