Hello everybody,
I have this php code in a script which has a switch statement:
Code:
<?php
include "/usr/local/include/php/fns.php";
?>
<html>
<head><title>Bla blah Blah</title></head>
<body bgcolor="pink">
<?php
switch($_POST['act_choice'])
{
case "pgpr":
pgpr_form1();
break;
case "alpha":
alpha_form1();
break;
case "vpt":
vpt_form1();
break;
}
?>
</body>
</html>
Is there a php function which can directly open a given html page. In above case, I want that in case "ppr" a form (say ppr_form.html) should open, similarly for case "alpha" a form - alpha_form.html, should be opened. I believe there is some php function which should do it.
Can anyone guide a greenhorn like me?
Thanks in advance.
Prabhat Soni