Dynamically updating and saving webpages

Right now it is a guestbook thing, but I created this whole thing in order to dynamically update individual webpages. It was created so I could (or my client could) easily update smaller sections of their site without actually logging into the control panel.

Heres what I have:

I have an HTML file (htmlform.html) that has form inputs. When you press the button it sends the variables to a PHP file (phptest.php) that organizes the variables and writes them to a text file. Then the last PHP file (phpRec.php) recieves the info from the text file and writes them out in a table.

My question is:

Is there an easier way that I can’t see?

Here is a link to what I have:

http://www.livetoskateboard.com/cssTest/htmlform.html

I intend to make it much more comprehensive, allowing the individual to insert images and such…but this is just the bare-bones of it.

peace,
Jubs

If you know asp it is extremely easy…use the “post” action from your form then have a asp page with a series of request.form statements make each form element into a variable like this

dim strExample

strExample = request.form(“formElemet”)

Then you can put those values into session objects or cookies or open a database connection and use the data as pleased. Let meknow if you need a better example of this.

I don’t know asp. I only know a limited amount of PHP, and I have no clue how to use PHP along w/ mySQL. Database interaction confuses the crap outta me.

Btw Jubba you should get a javascript form field validator.
Theres lots of blank fields in your guestbook because theres no validator.

Yeah I’m workin on it. I haven’t had a chance to look at it since I posted that message.

ppl, btw… for mysql tutorials, just visit http://www.sqlcourse.com/ you will thank me later :slight_smile:

I will thank you now and learn later. Thank you. :slight_smile:

heh, np :wink: