Welcome Guest, Not a member yet? Register   Sign In
Can Form_Validation check GET data?
#11

[eluser]marcogmonteiro[/eluser]
YOu can validate get values, sorry I haven't updated this when I found an answer to this problem.

If you want to validate the $_GET array or any other array for that matter just do this:

Code:
function foo(){
    $_POST = $_GET;
    // then do your validation here
}

sometimes when I want to validate if a file was uploaded and whatnot I just do the upload and then do $_POST['file'] = $uploaded_data['file_name']; and then use form validation on that field too.

I hope this helps.
#12

[eluser]fasfad[/eluser]
Simple solution, nice




Theme © iAndrew 2016 - Forum software by © MyBB