Ok I have tried every which way from sunday to understand how to be able to use this with a certain group of my scripts with no luck. Keep in mind any responses may have to be "dumbed down"
Here is an example of how these scripts are set up.
page is originally called as such
PHP Code:
testpage.php?sub=gen_form
testpage.php would contain code
PHP Code:
<?php
include_once('/path/to/test.class.php');
$gen_test = new test_gen;
?>
as well as
PHP Code:
<?php
if($_GET['sub'] == 'gen_form')
{
$gen_test->gen_test_form();
}
if($_POST['sub'] == 'Generate Test')
{
$gen_test->gen_test();
}
if($_POST['sub'] == 'Preview Test')
{
$gen_test->preview_test();
}
?>
Of course all of the true scripting is located at /path/to/test.class.php
can anybody be of help? I am hoping with an example I can finish the rest of my scripts which are similar and maybe get a better understranding so that I may do my other scripts which are different.