Skip to content

Instantly share code, notes, and snippets.

@arif98741
Created December 2, 2018 09:52
Show Gist options
  • Save arif98741/34ab1835805aa6736f01905f4d6e5063 to your computer and use it in GitHub Desktop.
Save arif98741/34ab1835805aa6736f01905f4d6e5063 to your computer and use it in GitHub Desktop.
Get data By $_GET
<a href="view.php?id=<?php echo $id;?>&&date=<?php date('Y-m-d')?>">View Page</a>
<!-- and get data in view.php file like below -->
<?php
if (isset($_GET['id']) && isset(_GET['date'])) {
$id = $_GET['id'];
$date = $_GET['date'];
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment