Posted by Paul Lautman on 05/21/06 23:48
Steph wrote:
> hello everyone,
>
> I would to know how to check the value I am getting from an HTML form.
>
> Let's put it that way, I need to get a string and I would like to
> make sure this is a string and not a number for instance.
>
> What kind of test could I use to check that?
>
> //here is the line where I get the value
>
> $variable = $_POST['value'];
>
> The point is I have to insert the data in an Oracle database. And I
> would like to test it before sending the data to the database.
>
> Any advice, please?
How are you defining a string and a number? Is 9,999 a number or a string?
[Back to original message]
|