I'm trying to develop one quite simple wizard and put it into a tag for CMSMS. First page is with questions and I need to submit it using post method. But it simply doesn't work. Please tell me any known issues about this or where is a mistake?
Code: Select all
<?php
if(!$_POST && empty($option)) {
# print form questions
?>
<form action="<?=$_SERVER["REQUEST_URI"]?>" method="post" name="survey">
<table border="0" width="580px">
<?php
$info = $db->Execute("QUERY");
$i = 1;
while(!$info->EOF) {
echo "some info right here";
$i++;
$info->MoveNext();
}
?>
</table>
<br /><a href="#" onclick="document.survey.submit();" class="seminar_button"><?=$show_results?></a>
</form>
<?php
}After submition browser returns to index page. The same if a href is set to $_SERVER["REQUEST_URI"]
Additional info:
CMS Made Simple 1.0.2 "Maui"
PHP Version 4.4.4
Thanks for any hints
