URL encode


I want to create a website based on PHP, everything is great but one problem. I have index.php file.

I was wondering how to create ?pages=Index next to the index.php and ?pages=Index&id=1

so I need info about ?pages and &id, how to make that?

Here is a quick (basic) script to demonstrate how it works:


<?php // check 'index' is set if(isset($_GET['index'])) { echo '


'; // say hello } // check 'np' is set if(isset($_GET['np'])) { echo '


'; // show the number } // leave PHP and create some HTML links that point to this file. ?>

Click here to say hello

Click here for a number


Your question was very vague so i hope this helps,

Sponsor our Newsletter | Privacy Policy | Terms of Service