Hey all! I started to code php yesterday in need to create good dynamic websites to our server project for one game. I got c++ expirience of like 7 months soon, so the syntax is known to me excluding some differences. I've wondered how do I make a page like when you go to index page and click link from there it goes to page like index.php?Page=2 not to other php file. Did I says it enough clear. I really don't know with what word to google for it.
Jump to Post
headers are the way to go
header('location:?Page=2'); // fullway: header('Location:./index.php?Page=2');
then to get the 2 you have todo:
$page = $_GET['Page']; //$page will be 2
All 5 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.