PDA

View Full Version : Dynamically updating and saving webpages.



Jubba
December 26th, 2002, 12:30 AM
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

DDD
December 27th, 2002, 02:02 AM
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.

Jubba
December 27th, 2002, 02:08 AM
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.

IceCube
December 31st, 2002, 04:22 PM
Btw Jubba you should get a javascript form field validator.
Theres lots of blank fields in your guestbook because theres no validator.

Jubba
December 31st, 2002, 05:36 PM
Yeah I'm workin on it. I haven't had a chance to look at it since I posted that message.

c0ldfusion
January 4th, 2003, 11:19 PM
ppl, btw... for mysql tutorials, just visit http://www.sqlcourse.com/ you will thank me later :)

Jubba
January 5th, 2003, 02:21 AM
I will thank you now and learn later. Thank you. :)

c0ldfusion
January 5th, 2003, 04:29 PM
heh, np ;)