Array eg:
Code: Select all
<?php
$mode = $_GET['mode'];
$modes = array("submit", "post");
if(in_array($mode, $modes)) {
// do the script
} else {
exit;
}
?>Yes, I'm assuming I can't trust the user 100%. So then I thought of encryption, md5 and crypt is just a one way encryption from what I read. I'd need PGP or some libraries or encrypt and decrypt - which my host does not have <_<.
So now I'm stuck with an option to make my own encryption system or............any suggestions?
-Nay