I'm calling a fpdf
file through an URL. For some calls I need to supply specific parameters, which are only used on specific calls. I cannot update all calls to the FPDF file, so I want to test inside the file, whether a URL parameter exists.
I'm trying like this:
<?php
require('fpdf.php');
ini_set('display_errors', 1);
error_reporting(E_ALL);
import_request_variables("GP", "rvar_");
if (isset($rvar_store){
... set something
}
So the URL parameter store
will be passed on some php-calls, while there is no parameter on others.
The above doesn't work (I get a blank page).
Question:
How do I test for a URL parameter? I need to test if it is defined?
EDIT:
My url called will look like this:
fpdf/item.php?iln="+ilns+"&sprache="+locale+"&bestellkeys="+bestellkeys;
or when I have my spec param:
fpdf/bestellung.php?iln="+ilns+"&sprache="+locale+"&bestellkeys="+bestellkeys+"&store=true";