Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Form question


Message #1 by Tom Achtenberg <toma@f...> on Thu, 7 Nov 2002 14:49:46 -0700
I have a form for data entry modeled in part after the "Items.asp" form in the Classified ad project in
the Beginning ASP book.  In my text input fields, it is deleting everything after the first space.  Such as the venue for a concert
might be "AWA Arena".  When the next screen comes up populating the field with a request.form("venue") statement it only has "AWA"
in it.  I'm stumped by why it is dropping everything after the space when I set the maxlength of the input box to 30.

			<td>Concert Venue</td>
			<td><input type="text" name="venue" size="30" maxlength="30"</td>

Thanks in advance for any suggestions.

Tom Achtenberg
SQL Programmer, Information Technologies
Food for the Hungry / US
(xxx) xxx-xxxx  (voice)
(xxx) xxx-xxxx  (fax)
TomA@f...

Message #2 by Greg Griffiths <greg2@s...> on Thu, 07 Nov 2002 23:53:06 +0000
Tom you seem to be missing a > on your sample, ensure that your VALUE 
attribute is enclosed in quotes when you use the value on a form.

At 14:49 07/11/02 -0700, you wrote:
>I have a form for data entry modeled in part after the "Items.asp" form in 
>the Classified ad project in the Beginning ASP book.  In my text input 
>fields, it is deleting everything after the first space.  Such as the 
>venue for a concert might be "AWA Arena".  When the next screen comes up 
>populating the field with a request.form("venue") statement it only has 
>"AWA" in it.  I'm stumped by why it is dropping everything after the space 
>when I set the maxlength of the input box to 30.
>
>                         <td>Concert Venue</td>
>                         <td><input type="text" name="venue" size="30" 
> maxlength="30"</td>
>
>Thanks in advance for any suggestions.
>
>Tom Achtenberg
>SQL Programmer, Information Technologies
>Food for the Hungry / US
>(xxx) xxx-xxxx  (voice)
>(xxx) xxx-xxxx  (fax)
>TomA@f...
>
>



Message #3 by Tom Achtenberg <toma@f...> on Fri, 8 Nov 2002 07:33:18 -0700
Thanks for the reply.  The > is in the file, I had missed it on my copy paste is all.  What I did
find was I was missing the " marks around the value clauses on my verify page and that's where the truncation was happening.

-----Original Message-----
From: Greg Griffiths [mailto:greg2@s...]
Sent: Thursday, November 07, 2002 4:53 PM
To: ASP Web HowTo
Subject: [asp_web_howto] Re: Form question


Tom you seem to be missing a > on your sample, ensure that your VALUE 
attribute is enclosed in quotes when you use the value on a form.

At 14:49 07/11/02 -0700, you wrote:
>I have a form for data entry modeled in part after the "Items.asp" form in 
>the Classified ad project in the Beginning ASP book.  In my text input 
>fields, it is deleting everything after the first space.  Such as the 
>venue for a concert might be "AWA Arena".  When the next screen comes up 
>populating the field with a request.form("venue") statement it only has 
>"AWA" in it.  I'm stumped by why it is dropping everything after the space 
>when I set the maxlength of the input box to 30.
>
>                         <td>Concert Venue</td>
>                         <td><input type="text" name="venue" size="30" 
> maxlength="30"</td>
>
>Thanks in advance for any suggestions.
>
>Tom Achtenberg
>SQL Programmer, Information Technologies
>Food for the Hungry / US
>(xxx) xxx-xxxx  (voice)
>(xxx) xxx-xxxx  (fax)
>TomA@f...
>
>




Message #4 by "Drew, Ron" <RDrew@B...> on Fri, 8 Nov 2002 17:11:16 -0500
Not sure if this will work..but replace sText with your request.form

sText =3D Replace(sText, " ", "&nbsp;")

-----Original Message-----
From: Tom Achtenberg [mailto:toma@f...]
Sent: Thursday, November 07, 2002 4:50 PM
To: ASP Web HowTo
Subject: [asp_web_howto] Form question


I have a form for data entry modeled in part after the "Items.asp" form
in the Classified ad project in the Beginning ASP book.  In my text
input fields, it is deleting everything after the first space.  Such as
the venue for a concert might be "AWA Arena".  When the next screen
comes up populating the field with a request.form("venue") statement it
only has "AWA" in it.  I'm stumped by why it is dropping everything
after the space when I set the maxlength of the input box to 30.

			<td>Concert Venue</td>
			<td><input type=3D"text" name=3D"venue" size=3D"30"
maxlength=3D"30"</td>

Thanks in advance for any suggestions.

Tom Achtenberg
SQL Programmer, Information Technologies
Food for the Hungry / US
(xxx) xxx-xxxx  (voice)
(xxx) xxx-xxxx  (fax)
TomA@f...



  Return to Index