URL encode

Greetings,

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]

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

hello

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

12345

'; // 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

[/php]

Your question was very vague so i hope this helps,
:wink:

Sponsor our Newsletter | Privacy Policy | Terms of Service