Link to home
Start Free TrialLog in
Avatar of markmchugh
markmchugh

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of nplib
nplib
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
you are getting the value from the url
it was not posted to the server from a form.