passing variable to a script

Hi,
I'm trying to pass a variable from one script to another one, this is the code in the first script

href=\"jobdetails.php?id=$jobid\">


in the jobdetails page, i do the following

$id = $_POST["id"];

but, when i echo $id its blank, what am i doing wrong? is there a better way?


thanks
markmchughAsked:
Who is Participating?
 
nplibConnect With a Mentor Commented:
this
$id = $_POST["id"];
needs to be this
$id = $_GET["id"];
0
 
nplibCommented:
you are getting the value from the url
it was not posted to the server from a form.
0
All Courses

From novice to tech pro — start learning today.