Have you tried something like this? I don't know whether it will work or not.
- PHP: Select all
include 'connectdb_techs.php';
include 'input_check.php';
$area = sql_quote($_POST['state']);
if ($area == '') { $area = sql_quote($_GET['state']); }
$cat = sql_quote($_POST['cat']);
if ($cat == '') { $cat = sql_quote($_GET['cat']); }
in a file called script.
php (or a more suitable name) then use:
- PHP: Select all
$stringData = file_get_contents('script.php');