PHP

Moderators: None (Apply to moderate this forum)
Number of threads: 1848
Number of posts: 5016

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Add-user-to-list + cookie Posted by w00ter on 31 Aug 2004 at 4:01 PM
Hey guys !!

I was wondering if any of you know of a certain script that enables website visiters to submit their name, and it'll get added to a 'list' which is in view on the website? A plus would be if it would also store a cookie on the submitters PC, so that user can also delete his/her own name, and not the others.

The reason I'm asking this, is because I've been searching for days for something that enables me to create this, whether it's a script to submit tasks, story's or whatever.
The idea is very simple.. and I dont think it'll be a very complicated script.

If anyone is able to point me in the right directions, it would be very much appreciated!!

Thanks in advance!

Best wishes,

w00ter

Report
Re: Add-user-to-list + cookie Posted by netgert on 1 Sept 2004 at 4:14 AM
: Hey guys !!
:
: I was wondering if any of you know of a certain script that enables website visiters to submit their name, and it'll get added to a 'list' which is in view on the website? A plus would be if it would also store a cookie on the submitters PC, so that user can also delete his/her own name, and not the others.
:
: The reason I'm asking this, is because I've been searching for days for something that enables me to create this, whether it's a script to submit tasks, story's or whatever.
: The idea is very simple.. and I dont think it'll be a very complicated script.
:
: If anyone is able to point me in the right directions, it would be very much appreciated!!
:
: Thanks in advance!
:
: Best wishes,
:
: w00ter
:
:
You should learn how to use MySQL databases
you can add an entry like this:
mysql_query("INSERT INTO users(name) VALUES(name='{$_POST[name]}')");
and delete like this:
mysql_query("DELETE FROM users WHERE name='{$_COOKIE[name]}')");
BUT! : cookies can be edited, so people can actually delete other peoples names, better think of a secure way, like storing username + pasword hash in cookie (some security experts dont even recommend this method)

NetGert[/italic]





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.