title: send the variable to another page in php
body: <p>I have two pages in php ,one of them is exam page(exam.php) and another is result page(result.php), the result is calculated in exam page and must be sent to result page to display.(I don't have a form)
  to send the result, Inside exam.php ,I write, header("location:result.php?result");
  and to get the result inside result.php ,I write, $newresult=$_GET['result'];
  but I receive error,and result didn't sent to the result page.
  would you please guide me?</p>