PHP Classes

create Thumbnail on POST

Recommend this page to a friend!

      Thumbnail Images  >  All threads  >  create Thumbnail on POST  >  (Un) Subscribe thread alerts  
Subject:create Thumbnail on POST
Summary:redirect issue
Messages:1
Author:codedudeman2
Date:2008-07-03 14:28:43
 

  1. create Thumbnail on POST   Reply   Report abuse  
Picture of codedudeman2 codedudeman2 - 2008-07-03 14:28:43
i use your usefull thumbnail_images.class, and it works!
but if wanna create thumbnails on POST and after this redirect to a summary-page. if i include your class then the redirect wont work, whitout it works!

my code:
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "save")) {
require_once("../thumbnail_images.class.php");

//Thumb_PDF

$thumb1 = new thumbnail_images();
$thumb1 -> PathImgOld = "../../files/".$pic;
$thumb1 -> PathImgNew = "../../files/thumb_".$pic;
$thumb1 -> NewWidth = 45;
$thumb1 -> NewHeight = 60;
$thumb1 -> create_thumbnail_images();

$insertGoTo = "check.php";

header(sprintf("Location: %s", $insertGoTo));
}

why i does the $insertGoTo not work whit your class?
thanks a lot for help