Jump to content

Adding delete post and adding picture to forum post


brmcdani

Recommended Posts

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).

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.