Extremely Basic Php Feedback Form
Moderator: General Moderators
-
jedivslotr
- Forum Newbie
- Posts: 1
- Joined: Sun Mar 23, 2008 9:57 pm
Extremely Basic Php Feedback Form
I wish to find a code snippet that someone has made, that simply parses feedback into a txt file on the server. Would this be secure? And is it practical?
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Re: Extremely Basic Php Feedback Form
1) If it's *that* basic just hammer it out yourself.
2) Secure, yes. Insecure? Maybe.
Just write a quick script to iterate the $_POST data and dump to a CSV file or something -- simple.
I would suggest writing to a single file and having that name hardcoded in the call to file_put_contents otherwise when you use a dynamic name is when trouble can ensue -- security issues arise.
2) Secure, yes. Insecure? Maybe.
Just write a quick script to iterate the $_POST data and dump to a CSV file or something -- simple.
I would suggest writing to a single file and having that name hardcoded in the call to file_put_contents otherwise when you use a dynamic name is when trouble can ensue -- security issues arise.