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.

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

Thanks! So I can use one page as master page like?

You said you started coding PHP yesterday and today you want to make a dynamic Website? If I get you well, you should spend little more time familiarizing with PHP/MySQL before jumping to such project (Or you know already of two beasts?)

Welcome to PHP anyway ;)

Yes Im wanting to make UCP for our server control panel I got some idea how to create I think I need to start session first and store all data there taken from mysql to show for the user who logs in.

commented: Confidence, cool, attitude makes a lot of difference in accomplishing your goals +2

Got to give Kudos for the self confidence,
&
you found a great place to ask questions if confidence isnt enough

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.