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.
Silvershaft
2
Junior Poster
Recommended Answers
Jump to Postheaders 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
Jump to PostGot to give Kudos for the self confidence,
&
you found a great place to ask questions if confidence isnt enough
All 5 Replies
Kruptein
15
Posting Whiz in Training
Silvershaft
2
Junior Poster
Stefano Mtangoo
455
Senior Poster
Silvershaft
2
Junior Poster
almostbob
commented:
Confidence, cool, attitude makes a lot of difference in accomplishing your goals
+2
almostbob
866
Retired: passive income ROCKS
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.