Extremely Basic Php Feedback Form

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jedivslotr
Forum Newbie
Posts: 1
Joined: Sun Mar 23, 2008 9:57 pm

Extremely Basic Php Feedback Form

Post by jedivslotr »

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

Post by alex.barylski »

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.
Post Reply