Passing variable using href

In php page rept. Php. 3 php variables

$c=7, $comn =6 , $noe1=8
and 3 session variable. $EPR, and $BATCH . I have to pass it to report. Php using href

<a href="http://localhost/evaluation/report.php?c1='.$c. '& comn1='.comn. '&noe2='.noe1.'&EP=".$-POST[EPR]."&BATCHR=".$-POST[BATCH ] ;"> ELECTIVE</a>

But unable to pass

that’s not valid code. and what should “unable to pass” even mean? show expected and actual output. use var_dump() to debug EVERY variable. it’s $_POST not $-POST, you get a message for that if error reporting is enabled.

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
1 Like
Sponsor our Newsletter | Privacy Policy | Terms of Service