I am trying to change the following to accept variables from a form.
note: thumbnail_create.php is a class.
<?php
include_once('folder/thumbnail_create.php');
$variable = new Thumbnail('images/resource_name.jpg',120,120,'thumbs/output_name.jpg',85,'
"greyscale()",
"ellipse(\'C3DDEE\')",
"bevel(7,\'FFFFFF\',\'111144\')",
"round_edges(4,\'C3DDEE\',1)"');
?>
I have tried as a test changing the bevel(7, parameter as follows, but the $_POST
will not turn blue.
<?php
include_once('folder/thumbnail_create.php');
$variable = new Thumbnail('images/resource_name.jpg',120,120,'thumbs/output_name.jpg',85,'
"greyscale()",
"ellipse(\'C3DDEE\')",
"bevel($_POST['BevelEdge'],\'FFFFFF\',\'111144\')",
"round_edges(4,\'C3DDEE\',1)"');
?>
I have also set $BevelEdge = $_POST['BevelEdge'] and used $BevelEdge but that doesn't work either.
It's driving me up the wall.
Any Ideas
Thanks
Frank