The following code is part of a script actioned by a web form
[PHP]if(isset($_POST['report']))#the form has been submitted
{
if($pls = $_POST['pls']) #hidden variable in pricesCostForm
{
$levels = array();
for($c=0;$c<$pl s;$c++)
{
if(isset($_POST['level'.$c]))
$levels[] = trim($_POST['level'.$c]);
} [/PHP] What do I add to the following command line
so that $_POST['report'] is set
$_POST['pls'] equals 45
and $_POST['level'.42] = 'TEST'
so that the above code will create the array
This so the script can run via a scheduled task.
Thanks
[PHP]if(isset($_POST['report']))#the form has been submitted
{
if($pls = $_POST['pls']) #hidden variable in pricesCostForm
{
$levels = array();
for($c=0;$c<$pl s;$c++)
{
if(isset($_POST['level'.$c]))
$levels[] = trim($_POST['level'.$c]);
} [/PHP] What do I add to the following command line
Code:
C:\apache\xampp\php\php-win.exe "C:\apache\xampp\htdocs\programs\Reports\Prices\pricesReportEntry.php"
$_POST['pls'] equals 45
and $_POST['level'.42] = 'TEST'
so that the above code will create the array
Code:
$levels[0=>'TEST']
Thanks
Comment