Welcome Guest, Not a member yet? Register   Sign In
Validation and GET values
#1

[eluser]Zarate[/eluser]
Hi there,

I'm looking at the validation class and it seems it only works with POST data, is this true? I've looking through the docs, the forum and the actual code and i haven't found a way of using the validation class with GET params.

Am i missing something?

What i want to do is validate the data coming in the URL. For example:

wadus.com/products/123

I want to check out 123 is a number, no longer than 8 characters, no SQL injection, bla, bla, bla. Can't i do that?

Right now i'm just thinking about copying the GET array to the POST array and run the validation class... but i'd want to do it "right".

Thanks!


Messages In This Thread
Validation and GET values - by El Forum - 04-02-2008, 01:56 PM
Validation and GET values - by El Forum - 04-02-2008, 02:46 PM
Validation and GET values - by El Forum - 04-02-2008, 02:52 PM
Validation and GET values - by El Forum - 04-02-2008, 03:33 PM
Validation and GET values - by El Forum - 04-02-2008, 03:37 PM
Validation and GET values - by El Forum - 04-02-2008, 04:24 PM
Validation and GET values - by El Forum - 04-03-2008, 02:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB