[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: Help with input problem



Adem M. Hamidovic wrote:
>
> I'm trying to do a select with a value input by the user. I'm using:
> input $provider 'Please enter the provider number'
> This field is actually a character field, so I thought this would be
> okay, but nothing is being selected. When I hard code it in, as
> in'45700', it works fine. Any help would be appreciated.
>
> -Adem Hamidovic
> hamidoam@tuns.ca

You might try doing an rtrim on the input variable.  It could be that a
space is getting appended somewhere. Try adding:
     $provider = rtrim($provider,' ')
right after your input statement.