First, I send the id to rec_update.php file like this:
location.href="http://localhost/pk/rec_update.php?id="+id;
On rec_update.php file, I access that value like this:
$id = $_GET['id'];
Now, I want to send this $id to rec_update1.php file. which can be called by clicking a button. On button I have applied a javascript function from where page will directs to rec_update1.php How do I get this value on another php file.