Hi
Can someone tell me how to pass parameters to a php file that has to be included, i.e. shown in a defined frame?
I'm using a form (in php) that is processed by "choice.php" :
<?php
switch ($choice) //Load appropriate form
{
case "consult": include ("formc.php"); break;
case "modify" : include ("formm.php"); break;
}
?>
However, I need to pass variables from the calling php script (the form script) through choice.php to the form-scripts. I tried
include ("formc.php?host=$host&port=$port");
to pass them as get-parameters, but the parser doesn't accept this. Does someone know how to do this?
Thanks