php page generation - newbie

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
msmecca
Forum Newbie
Posts: 2
Joined: Fri Feb 07, 2003 4:06 pm
Contact:

php page generation - newbie

Post 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:
superwormy
Forum Commoner
Posts: 67
Joined: Fri Oct 04, 2002 9:25 am
Location: CT

Post 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']);

?>

---------------------------------------
msmecca
Forum Newbie
Posts: 2
Joined: Fri Feb 07, 2003 4:06 pm
Contact:

Post 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.
Post Reply