Forums
This topic is locked
Smart Image Processor
Posted 05 Nov 2008 02:19:19
1
has voted
05 Nov 2008 02:19:19 greg scherff posted:
I have 3 form fields with the respective names "Floorplan1, Floorplan2, Elevation"I need only the upload from form "Elevation" to create thumbnails. Here is the script I have. Mind you, it creates thumbs for all of the forms...
<pre id=code><font face=courier size=2 id=code><?php
if (isset($_GET['GP_upload'])) {
$sip = new cGraphicMediator("upload", $ppu, ""
$sip->setComponent("Auto"
$sip->resize(468, 468, true);
$sip->overwrite = true;
$sip->saveJPEG(80);
$sip->process();
}
if (isset($_GET['GP_upload'])) {
$sipp1 = new cGraphicMediator("upload", $ppu, "Elevation"
$sipp1->setComponent("Auto"
$sipp1->resize(150, 150, true);
$sipp1->overwrite = false;
$sipp1->setMask("jpg/members/".$_SESSION["Cust_ID"]."/##name##_small.jpg"
$sipp1->saveJPEG(80);
$sipp1->process();
}
</font id=code></pre id=code>
Replies
Replied 05 Nov 2008 15:57:15
05 Nov 2008 15:57:15 greg scherff replied:
$sipp1 = new cGraphicMediator("upload", $ppu, "Elevation"
I thought that the "Elevation" would determine that form with that name would only be processed??
I thought that the "Elevation" would determine that form with that name would only be processed??