Page 1 of 1

php page generation - newbie

Posted: Fri Feb 07, 2003 4:06 pm
by msmecca
Newbie Warning....

I would like to create a php page that will generate a html page after information is entered. Example...

The user of the page will enter information such as file name, file type, file directory location. Then they would hit a submit button. Then a page would be generated with this information in a template that has been already designed. Is there any way php can do such? *help* :oops:

Posted: Fri Feb 07, 2003 4:57 pm
by superwormy
--------- form.html ---------------

<form method="post" action="handle_form.php">

<input type="text" name="firstname" value="">

<input type="submit" name="submit" value="Submit">

</form>

-------------------------------------


---------- handle_form.php ------------

<?php

print ("You entered your name as: " . $_POST['firstname']);

?>

---------------------------------------

Posted: Fri Feb 07, 2003 5:04 pm
by msmecca
Thanks wormy....i guess my next issue is...the information that is submitted in the form page should generate a new page each time this information is entered. I hear its called pat template.