For Programmers: Free Programming Magazines  


Home > Archive > ASP > May 2006 > request stopping at first space









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author request stopping at first space
Col

2006-05-30, 9:55 pm

Hi all,

I'm new at asp and there may be an obvious answer but I haven't found it
yet.

I have 3 pages

on page 1 there is a select box, name="UD", containing "Data B"

page1 submits to page 2
on page 2, <% USD=request("UD")%> results in USD = "Data B"
USD displays in a text box as "Data" (the space and B missing)

page 2 submits to page 3
on page 3, <% USD=request("USD")%> results in USR = "Data" (the space and B
missing)

How do I keep the data complete?

Regards
Colin



Bob Lehmann

2006-05-30, 9:55 pm

I'm assuming that what you really have is something llike...
value = <% USD=request("USD")%>

Quote the value attribute, and you should be good to go.
value = "<% USD=request("USD")%>"

Bob Lehmann

"Col" <newsletteraccount@hotmail.com> wrote in message
news:e0805PFhGHA.652@TK2MSFTNGP03.phx.gbl...
> Hi all,
>
> I'm new at asp and there may be an obvious answer but I haven't found it
> yet.
>
> I have 3 pages
>
> on page 1 there is a select box, name="UD", containing "Data B"
>
> page1 submits to page 2
> on page 2, <% USD=request("UD")%> results in USD = "Data B"
> USD displays in a text box as "Data" (the space and B missing)
>
> page 2 submits to page 3
> on page 3, <% USD=request("USD")%> results in USR = "Data" (the space and

B
> missing)
>
> How do I keep the data complete?
>
> Regards
> Colin
>
>
>



Col

2006-05-30, 9:55 pm

So obvious and so hard to see.
Thanks Bob

"Bob Lehmann" <nospam@dontbotherme.zzz> wrote in message
news:OOn$GsFhGHA.2456@TK2MSFTNGP04.phx.gbl...
> I'm assuming that what you really have is something llike...
> value = <% USD=request("USD")%>
>
> Quote the value attribute, and you should be good to go.
> value = "<% USD=request("USD")%>"
>
> Bob Lehmann
>
> "Col" <newsletteraccount@hotmail.com> wrote in message
> news:e0805PFhGHA.652@TK2MSFTNGP03.phx.gbl...
> B
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com