|
-
Dec 11th, 2001, 04:23 AM
#1
Thread Starter
Hyperactive Member
Bizarre Input Box Scenario
When I am trying to look at my records from my "Events" database via my ASP I record strange happenings.
Code:
<%
Response.Write "<input name ='AddressField' size='40' value=" & Events("Address1")&">"
%>
The results are that when I view the record It seems to chop off some of the value.
Like if the Address1 Field had a value of " My Address Field", I would get a returned value of "My"
But if I use the following of :
Code:
<%
Response.Write Events("Address1")
%>
Then "My Address Field" is returned, I have tried settings the MAXLENGTH of the input box and that didn't work.
So I am kinda lost for ideas right now.
Any help would be good!
Cheers.
-
Dec 11th, 2001, 04:48 AM
#2
Lively Member
My geuss is that you're code isn't wrong. There is only one problem that the value cannot contain a "space" so automatically chopping it to "My" in your case. May be you could try storing the value in a string.
Good luck
-
Dec 12th, 2001, 07:33 PM
#3
Fanatic Member
Try this
<%
Response.Write "<input name ='AddressField' size='40' value=" & Events("Address1")&">"
%>
Code:
<%
Response.Write "<input name ='AddressField' size='40' value=" & Events(Address1) &">"
%>

prog_tom
JOIN THE REVOLUTION!!!! Dual T3 backedup science community.
http://physics.sviesoft.com/forum
-
Dec 12th, 2001, 07:34 PM
#4
Fanatic Member
Database
What database do you use?

prog_tom
JOIN THE REVOLUTION!!!! Dual T3 backedup science community.
http://physics.sviesoft.com/forum
-
Dec 12th, 2001, 07:47 PM
#5
Good Ol' Platypus
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Dec 13th, 2001, 04:11 AM
#6
Thread Starter
Hyperactive Member
Strange
Code:
<%
Response.Write "<td width='15%' align='right'><strong><FONT face=Tahoma color=white size=2>Company Branch:</FONT></strong></td>"
Response.Write "<td width='85%'><input value='"& Events("CompanyBranch")&"'size='40' name='CompanyBranch'><FONT face=Tahoma color=white size=2></FONT></td>"
%>
The above code works, which is basically the same as I originally put in as the code, but the order in which I have placed the 'name' & 'size' properties have been jumbled around?
Strange if you ask me, but I am sure there is a valid reason
Thanks for your posts!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|