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

Input box problem beginner

Status
Not open for further replies.

diarratech

Technical User
Jul 7, 2000
41
FR
I am retrieving data (an address) from an access database to an input box on a form but the input box only displays the first characters before the space.
Eg: "1112 Franklin rd" in db will only display 1112 in the input box.
I did a "response.write" on the page and the complete address is actually fetched?

Any ideas?
 
Make sure in the
Code:
<INPUT>
tag, you put quotes or apostrophes on the Value parameter:
Code:
<Input Type='text' Name='Address' Value='1112 Franklin Rd'>
On the HTML side of things, &quot; and ' can be used interchangeably... but to make it easier for yourself, you might want to use ' in a response.write.

Kevin
 
I just figured it out!
I had to put quotations before ASP code!!

<input type=&quot;text&quot; name=&quot;address1&quot; tabindex=&quot;4&quot; value= &quot;<%=objRS.fields(&quot;address1&quot;)%>&quot;>
 
Thank you Niv3k!!
I just read your post!!

diarra2789
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top