I am trying to make a website that will hold RPG character sheets dynamically. I would like to be able to create new character sheets by submitting a form with the sheet's title, like this (this is part of the index.php page):
<form action = "charCreate.php" method = "post">
<h1>Character Sheet Name:</h1>
<input type = "text" name = "fileName">
<input type = "submit" value="Submit">
</form>
I am aware of the fopen method, but I'm not sure exactly how to use it in this scenario. I want to be able to create new webpages with this form, and have the index.php display a list of the files that have been created using the above form.
What would be the best way to dynamically update a list of created webpages and to create these webpages, using the value in the form for the file name.
I also want to find out how to alter these newly created pages, but I need to figure this out first.
Thanks.