This may seem like very basic stuff to you guys, but I'd like to know simply how to write to an HTML document. Basically, I'd like to take some text a user entered and to display it on a certain page. When they clicked "Submit", they would be re-directed to that page and see their submitted text displayed at the top of the page.
Thanks if you can help.
Writing to an HTML document?
Moderator: General Moderators
-
joetheeskimo5
- Forum Commoner
- Posts: 43
- Joined: Sun Dec 14, 2003 4:47 pm
- Location: US
- Contact:
You will have open the HTML file (or create one if it's not already created), write the text you want and then close it. Here are some functions that will help you out:
fopen -- Opens file or URL
fwrite -- Binary-safe file write
fclose -- Closes an open file pointer
Heres a tutorial that shows you how to use these functions:
http://www.somethingleet.com/forum/arti ... e&artid=63
fopen -- Opens file or URL
fwrite -- Binary-safe file write
fclose -- Closes an open file pointer
Heres a tutorial that shows you how to use these functions:
http://www.somethingleet.com/forum/arti ... e&artid=63
-
joetheeskimo5
- Forum Commoner
- Posts: 43
- Joined: Sun Dec 14, 2003 4:47 pm
- Location: US
- Contact: