Forum Moderators: coopster
Does that make sense. I'm new to E-Commerce and PHP
Regular expressions can be a pain to learn, but very powerful once you have them under your belt.
So you use something like;
if (ereg(^[A-Z0-9_]*,$a)){
include($a);
}
else
{
collect data on the hacker for reporting
}
The ereg line only allows for alpha, numeric and underscore, so no 'http://' or '?' or '='.
Using this you can pass a page or menu variable from page to page and not get caught by a hacker.