brmcdani Posted October 8, 2009 Share Posted October 8, 2009 Can someone send me in the right direction on how to add a delete post feature to my forum. Also I would like for the user to be able to upload pictures to their post as well. Any ideas on where to start finding information on how to accomplish this? Quote Link to comment https://forums.phpfreaks.com/topic/177005-adding-delete-post-and-adding-picture-to-forum-post/ Share on other sites More sharing options...
johnsmith153 Posted October 8, 2009 Share Posted October 8, 2009 Very difficult with so little info. Delete: -Could do so an url goes to www.yourforum.com?forumId=123 -Then using $_GET['forumId'] your database deletes that id from the table (probably should ensure logged in user also) Upload Photo: - Quick search on Google found this: http://www.tizag.com/phpT/fileupload.php - Be aware that when allowing user to upload a photo that they could upload any file (e.g. a .php file) - you will need to look into the security around this. - If uploading a photo, you should also convert the file received into something suitable. If user uploaded 8MB file you wouldn't want to store or display this. Look into "Imagick" for this (Google). Quote Link to comment https://forums.phpfreaks.com/topic/177005-adding-delete-post-and-adding-picture-to-forum-post/#findComment-933292 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.