text/html file creating<

I am a newb to PHP, not to HTML though. (First time ever trying PHP). I have a PHP page that will allow the user to input their name and then submit it. like a guestbook. but instead what I want it to do is either create a .txt file or .html file that always has a different name with their info.

alright:

user #1 types his name in the text box, presses submit and then the code creates 1.html with his info.

I assume that I will need some sort of permanent counter in it so that it will keep going to create #.html to accomodate for the number of guests that go there.

any help is welcome. including a snap back to reality. :Duser #1 types his name in the text box, presses submit and then the code creates 1.html with his info.

hmmm, an interesting idea none the less, but you might have better luck trying to learn the basics of using a MySQL database with PHP.I remember when I was asking those same questions. Definately check out PHP using MySQL. PHP is a great programming language. I would have to say it is my favorite. MySQL would also be my favorite database.

Tip: When you want to get the reference on a PHP function type into your browser's address bar <!-- m --><a class="postlink" href="http://php.net/what_ever_function_you_want">http://php.net/what_ever_function_you_want</a><!-- m -->

<!-- w --><a class="postlink" href="http://www.php.net">www.php.net</a><!-- w --> (<!-- m --><a class="postlink" href="http://www.php.net">http://www.php.net</a><!-- m -->) will take you straight to the function!

-panreach
 
Back
Top