Image Secure Pages Generator - Upload Form

>Config_number (f01) :
Image Quantity allowed per product (f02):
Upload Action Pgno (f03):
Main Product Title (f04):


Main Product Tablename (f05):
Main Product fieldname (f06):
Main Product ID fieldname (f07):


Image Tablename (f08):
Image Product fieldname (f09):
Image ID fieldname (f10):

Example

<?php
if(defined('INCLUDE_CHECK')) {
$imgqty2=$f02;

require_once('../../../ahidden/config$f01.php');
$sqllink=$sqllink$f01;

$f02=$_GET[0]['f02'];
$f02=test_input($f02, $sqllink);

//Name or description for the images as stockitem
$sqloset2="SELECT `$f06` AS `stockitem` FROM `$f05` WHERE `$f07`='$f02'";
//the upload action pages
$offmac=$f03;
//SQL for select the images from the images_table to cal how many existing images
$sqloset3="SELECT `$f10` FROM `$f08` WHERE `$f09`='$f02'";
//the respective images from
$dembidmem='$f04';

$rsloset2=mysqli_query($sqllink, $sqloset2)or die(mysqli_error($sqllink));
while($rowoset2 = mysqli_fetch_assoc($rsloset2)){
extract($rowoset2);
}//end while($rowoset2 = mysqli_fetch_assoc($rsloset2))

$rsloset3=mysqli_query($sqllink, $sqloset3)or die(mysqli_error($sqllink));

$rcouoset3=mysqli_num_rows($rsloset3);

$imgqty=$imgqty2-$rcouoset3;

echo "<p>Maximum Size allowed per image : 400K.</p> \n";

echo "<h3>Images for $dembidmem : $f02, $stockitem</h3> \n";

?>
<form name="upload" action='<?php echo "$phpself1"; ?>?pg=<?php echo "$offmac"; ?>&pgs=7&lag=1&pgno=1&sqllimit=1' method="POST" enctype="multipart/form-data">
<input type='hidden' name='token' value='<?php echo "$token"; ?>'>
<input type='hidden' name='f02' value='<?php echo "$f02";?>'>
<?php

for($imgqty1=1;$imgqty1<=$imgqty;$imgqty1++){
echo "Select image to upload: <input type='file' name='image[]'>
\n";
}
?>
<input type='submit' name='upload' value='upload'>

</form>
<?php
}
?>