Hi Im getting the following error:
Notice: Undefined index: rout in /home/webs/cia/web/sovereign/functions.php on line 8. What could be the problem?
Thanks a lot
PHP Code:
<html>
<form name="thingy" action="functions.php" method="post">
<input type="hidden" name="rout">
</form>
</html>
<?php
$rout = $_POST['rout'];
$filenames = array("index",
"services",
"products",
"quotes",
"contact",
"home",
"admin");
if (in_array($rout, $filenames))
{
include "$rout.php";
exit;
}
else
{
include "index2.php";
}
?>