I have the following code where I execute a query on the first page. If it returns a certain value, I want to redirect to another page and pass along the parameters from the first page, else keep executing the first page.
Any help would be great. Please let me know if I have not included enought information to determine my problem.
//Supervisor Check...
$sup_query = "SELECT supervsr
FROM
emptable
WHERE
(((user_id)='$user_id'))";
$sup_result = pg_query($connection, $sup_query)
or die("Error in query: $sup_query.
" . pg_last_error($connection));
$sup_row = pg_fetch_row ($sup_result);
$sup_flag = $sup_row[0];
if ($sup_flag == 1) {
echo ("<form name='SubMain' action='benefit_supervsr.org.php' method='post'>"
;
}
Any help would be great. Please let me know if I have not included enought information to determine my problem.
//Supervisor Check...
$sup_query = "SELECT supervsr
FROM
emptable
WHERE
(((user_id)='$user_id'))";
$sup_result = pg_query($connection, $sup_query)
or die("Error in query: $sup_query.
" . pg_last_error($connection));
$sup_row = pg_fetch_row ($sup_result);
$sup_flag = $sup_row[0];
if ($sup_flag == 1) {
echo ("<form name='SubMain' action='benefit_supervsr.org.php' method='post'>"

}