I've written a very basic classified advertising script that allows visitors (once registered) to place, modify and delete their classified ads.
However, I'm stumped when it comes to securing the users posts. I'm not using .htaccess, I'm simply using MySQL to verify registered users. Therefore when a user logs in to modify an ad, the url looks like this:
http://www.mysite.com/place.php?userid=1
As it stands, if someone were to type in "http://www.mysite.com/userid=34" they would end up being able to modify another users ads.
Is there a way to prevent this without getting into .htaccess?
If not, how would I go about securing the site?
Your help will be much appreciated!