• Hello everyone, I’m currently working on a button that appears below each image if they’re the user to delete the image. But I’m using the deleteImage(); function from photosmash here’s my code.

    $ret .= "<form method='post' action='' style='margin:0px;padding:0px;'>";
    
    		$ret .= "<input type='submit' style='width:120px;height:40px; margin-left:8px; font-size:12px; padding:2px;' id='mngl_deleteimg' name='mngl_deleteimg' value='Delete Image'/>";
    
    		$ret .= $image['psimageID'];
    
    		if ( $_POST['mngl_deleteimg'] )
    		{
    				deleteImage($image['psimageID']);
    		} 		
    
    		$ret .= "</form>";

    However, when clicking the delete button, it just renders an error by displaying [photosmash form] instead of the actual form, and it doesn’t remove the image after a refresh.

    Does anyone have any advice?

  • The topic ‘Photosmash Mingle’ is closed to new replies.