UFOman said "server allows php but because the program i used can only output html pages"
It sounds to me like what you really need is to understand how to combine html pages with php code. The simplest (yet proper) way to do what you want is like this:
1) Using Notepad or TextEdit, open the HTML file your program output
2) Select All and Copy the contents
3) Create a file called yourPageNameTemplate.php and Paste into it. Pretend it looks like this:
<html>
<body>
<form method="post">
<input type="text" name="user_name" value="" />
<input type="submit" name="submit" value="submit" />
</form>
</body>
</html>
4) Create a file called yourPageName.php and put something like this in it:
<?php
if(isset($_POST['submit']) && isset($_POST['user_name']))
{
echo 'Thanks for submitting the form!';
}
else
{
include 'yourPageNameTemplate.php';
}
?>
That should work just fine.
Now, if you want to add some error checking, an an error message to your Template, we can do that quite simply.
5) Edit yourPageNameTemplate.php like this:
<html>
<body>
<?=$form_error_message?>
<form method="post">
<input type="text" name="user_name" value="<?=$form_user_name?>" />
<input type="submit" name="submit" value="submit" />
</form>
</body>
</html>
6) Edit yourPageName.php like this:
<?php
$form_error_message = '';
$form_user_name = '';
if(isset($_POST['user_name']) && strlen($_POST['user_name']) < 5)
{
$form_error_message = 'User Name must be at least 5 characters long';
$form_user_name = $_POST['user_name'];
}
if(isset($_POST['submit']) && empty($form_error_message))
{
echo 'Thanks for submitting the form!';
//it would be better to include a full 'thank you' template here, instead of echoing.
}
else
{
include 'yourPageNameTemplate.php';
}
?>