xtremee
Jun 30 2007, 07:15 AM
Hi all,
I'm just about making my first website and wanna to add box where users can wirte there feed back to me.
it is something like this
LinkI think i will need db and php
So How i can add something like it to my website
Thanks in advance.
ripken204
Jun 30 2007, 09:31 AM
oh i've done this before. you can use php and a .txt file, no database required, i'll try to find my files.
edit: okay here we go, just dload the attachment, make sure to have a file called output.txt in the same directory as feedback.php
xtremee
Jun 30 2007, 11:55 AM
Thanks for your help
I download your php file and creat my output.txt file then upload them to my website in the same directory but it doesn't work for me !
Here are the links
http://xtremee.orgfree.com/feedback.phphttp://xtremee.orgfree.com/output.txtThanks in advance
ripken204
Jun 30 2007, 01:21 PM
you probably need to chmod the output.txt file to allow writing
xtremee
Jun 30 2007, 10:24 PM
QUOTE (ripken204 @ Jun 30 2007, 10:21 PM)

you probably need to chmod the output.txt file to allow writing
What is mean by
chmod = ? This is my first website
Thanks
ripken204
Jun 30 2007, 11:31 PM
xtremee
Jul 1 2007, 01:43 AM
Thanks very much it working now but, when i post a comment then refresh the page with empty input in the boxes it automatically post the previous post but when i open the page in new window then refresh with empty input it doesn't post any thing till i write
I think it is seam that it make buffer or something like that.
Thanks for your help
ripken204
Jul 1 2007, 10:09 AM
ya i forgot about that, i made an updated version that fixed it but can't find where i put it.. sorry.
i think that one possibility would be to redirect it to another page and then back..
xtremee
Jul 1 2007, 10:21 AM
Sorry, HOW to redirect it to another page and then back.. ?
ripken204
Jul 1 2007, 10:36 AM
in the form tag have action="anotherpage.html"
then in anotherpage.html have a link to go back
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.