(01-02-2018, 07:26 PM)falkoner Wrote: Moving the conditional statement to the top section as Paul suggests, but then altering it to be:
if (isset($_GET['Quotations'])){
$_POST['Quotations']=$_GET['Quotations'];
}
Thank you both for checking!
Though I can get the situation mentioned previously, I do have that suggested code snippet moved to the top, but with a slight modification:
PHP Code:
if ( isset($_GET['Quotations']) ) {
$_POST['Quotations'] = $_GET['Quotations'];
}
else {
$_POST['Quotations'] = '';
}
The else portion will help to reduce conditional checks (later down in the code) to remove:
PHP Code:
isset($_POST['Quotations'])
Some conditions checked for this, but some others did not, so this will help facilitate some minor code reduction too.