Do you know

<form action="ascript.php" method="get">
<input type="hidden" name="id" value="a">

and

http://www.asite.com/script.php?id=a

?


Valid IDs are numbers. How do I prevent my script from assigning
invalid values to id?

On 18 jan, 17:18, Webweave <[email protected]> wrote:
> Not clear on what your question means, are you asking about validation
> rules?
>
> On Jan 18, 7:30 am, Delirium tremens <[email protected]> wrote:
>
> > How to validate an id passed not by post, but by get? I do not have to
> > output an error message to hackers and crackers, do I? I tested using /
> > ^[0-9]{1,10}$/ as rule, nothing as message and passing an "a", but it
> > did not output an error message.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to