picnictutorials — 2013-04-08T13:03:13-04:00 — #1
How to let a website visitor dynamically write some text to the page?
force — 2013-04-08T13:11:13-04:00 — #2
picnictutorials — 2013-04-08T13:17:02-04:00 — #3
Has to be php so it's indexable. Or if that can be done with js cool. I want a visitor to be able to write text and push submit and it goes on the webpage. Exactly like a comment engine would.
avram — 2013-04-08T14:10:01-04:00 — #4
Do you have any experience with (MySQL) databases? It's rather trivial, you need to submit form to the PHP page that will save posted content to the database (or file if you want) and when (your original) page is loaded just read and display the data.
The point is you need to save the content on your server. It depends on your needs (and knowledge) whether you'll use file(s) or database to store the data.
picnictutorials — 2013-04-08T14:19:09-04:00 — #5
No I don't. But I know it's easy right. I could just store them in a flat file too right?
avram — 2013-04-08T16:33:33-04:00 — #6
If you don't need to do advanced selection of data but just read the data as it was written, then yes. You can use [file_get_contents and [URL="http://www.php.net/manual/en/function.file-put-contents.php"]file_put_contents](http://php.net/manual/en/function.file-get-contents.php). Just make sure that user which executes PHP binary has correct permissions to write to your data file(s). Note that these functions are just wrappers to standard fopen, fwrite/fread and fclose functions.
picnictutorials — 2013-04-08T17:15:31-04:00 — #7
I just need a guestbooks script actually. It just needs to be flat file and have a captcha.
felgall — 2013-04-08T17:41:48-04:00 — #8
First result from a search of Google gives http://www.phpjunkyard.com/php-guestbook-script.php which uses a flat file, has a captcha and is free.
picnictutorials — 2013-04-08T18:08:20-04:00 — #9
I need a website entry field too. Preferable links the name. I tested many without a website field. I can't seem to find a way to make the link a hyperlink. Bbc code nor html works in them.
avram — 2013-04-09T05:05:09-04:00 — #10
If you can use MySQL database you can check the comment script script I've made. It has website field and supports simple HTML. It integrates into your custom php files.
shaydez — 2013-04-14T10:14:20-04:00 — #11
are you trying to do this ?
inline page update?
picnictutorials — 2013-04-14T12:44:17-04:00 — #12
oddz — 2013-04-16T00:36:38-04:00 — #13
A simple commenting engine solution would be disqus. No programming really required with a service like that.
picnictutorials — 2013-04-16T06:00:47-04:00 — #14
Disqus is nofollow. Needed to be dofollow