Is there anyway to pass form varibales thru a template without using the hidden option. I have a PHP Class that parses a static html and includes live php components while parsing. Is there any way to gather Form varibles and send them thru Form parser to be included in a include() statement.
Thanx.
function GenPage ()
{
foreach($this->parameters as $key => $value)
{
$template_name = '{' . $key . '}';
if (ereg('_', $key))
{
// Read object data from the php scrip that
//should be include
// In this php executable option
ob_start();
include($value);
$s = ob_get_contents();
ob_end_clean();
// Add executable data to string to be displayed
// This option is returned from template
displaying an under
// score in the template.
$this->html = str_replace($template_name, $s, $t
his->html);
}
elseif (!(ereg('_', $key)))
{
// Replace template date with value
identified {} in template.
$this->html = str_replace($template_name, $value
, $this->html);
}
}
// Print the HTML parsed
echo $this->html;
}
}// end