Re: GET method... screwups
| From: | scottrus at ipass dot net | Date: | Fri, 21 Jul 2000 15:01:40 +0000 |
| Subject: | Re: GET method... screwups | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-7649@lists.php.net to get a copy of this message | ||
You might want to build an array of 'weird chars' and then loop through
the array and verify that those chars are not in your get statment.
If they are send the user to a 'weird chars detected' error page and have
them go back and renter the data again. You cat get the entire string from
the QUERY_STRING Apache Environment I think.
-- Scott
On Fri, Jul 21, 2000 at 04:27:55PM -0700, Ed Vul wrote:
> I have a form that a user fills in, and I _have_ to pass it via GET in the
> url....
> so if a user enters some extraordinarily funky characters, The fields after
> that field are screwed up...
> Now when i recieve fields normally, I do an ereg_replace (as people so
> kindly helped me with earlier) and that becomes all good and oracle
> friendly...
> but how can I prevent people from entering weird characters into the field
> so that the url doesnt get screwed up?
>
> Any help would be pachy keen
> Thanks
> Ed
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
Scott