I'm having a problem with using import_request_variables and even $_POST when trying to pass form data in an if else statement. Here is the sample code..
<?
if (!$submit)
{
echo "<form action='test.php' method='post'>";
echo "<input type='text' name='blah'>";
echo "<input type='submit' name='submit' value='submit'>";
}
else
{
import_request_variables ("gp", "form_");
print $form_blah;
}
?>
yet when I type something into the text box and click submit.. nothing happens nothing gets printed at all or passed for that reason. Is there anyway to fix this?