I would like user ID to show on URL bar
<p>I have a php file named profile.php, where in URL if you type mywebsite.com/profile.php you go to your profile, what I would like is for other profiles to show up as link with their ID, for example lets say I want to see Bob's profile, and his ID is 25, I would go to mywebsite.com/profile.php?ID=25 or something like that, how may I achieve that?</p>

<p>Thank you.</p>

<p>GUYS, im having alot of trouble with this, so heres the code I have for profile.php, also please let me know what I should do so when users click on the name it also takes them to profile, having lots of trouble with this guys thank you!!</p>

<pre><code>&lt;?php 

session_start();
if (!isset($_SESSION['loggedin']) || $_SESSION['loggedin'] == false) {

header( 'Location: index.php' ) ;       
exit;
} 

include('get-info.php');


if ($_SESSION['email']) {

}else{
    header( 'Location: profile.php' ) ;
    }


?&gt;

&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
&lt;html&gt;

    &lt;head&gt;
    &lt;link rel="Icon" href="images/ricon.ico" &gt;

        &lt;title&gt;

            Rate-Away | Profile

        &lt;/title&gt;

        &lt;link href='css.css' rel='stylesheet' type='text/css' /&gt;

    &lt;/head&gt;

    &lt;body class='home-body' &gt;

        &lt;div class='home-nav-bar'&gt;

            &lt;div class='home-nav-bar-content'&gt;

                &lt;a href="home.php"&gt;&lt;img src='images/rateaway.png' class='home-nav-bar-logo' /&gt;&lt;/a&gt;
                        &lt;div class='home-nav-bar-links-container' &gt;

                        &lt;div class='dropdown'&gt;
                        &lt;ul&gt;

                            &lt;li class='nav-options'&gt;

                                &lt;a href="#" class='options-link' &gt;Options&lt;/a&gt;

                                &lt;ul class='drop-down-options'&gt;

                                    &lt;li&gt;&lt;a href="home.php" class='drop-down-links'&gt;Home&lt;/a&gt;&lt;/li&gt;
                                    &lt;li&gt;&lt;a href="#" class='drop-down-links'&gt;Profile&lt;/a&gt;&lt;/li&gt;
                                    &lt;li&gt;&lt;a href="settings.php" class='drop-down-links'&gt;Settings&lt;/a&gt;&lt;/li&gt;
                                    &lt;li&gt;&lt;a href="logout.php" class='drop-down-links'&gt;Logout&lt;/a&gt;&lt;/li&gt;

                                &lt;/ul&gt;

                            &lt;/li&gt;

                        &lt;/ul&gt;



                    &lt;/div&gt;  

                &lt;/div&gt;

            &lt;/div&gt;

        &lt;/div&gt;

        &lt;div class='home-main-content' &gt;

            &lt;div class='profile-current-info'&gt;

                &lt;p class='profile-name'&gt; &lt;?php get_info($_SESSION['email'], 'name'); ?&gt; &lt;/p&gt;

                &lt;img src='&lt;?php get_info($_SESSION['email'], 'profilepic'); ?&gt;' class='profile-pic'/&gt;

                &lt;p class='profile-dob' &gt; Born: &lt;?php get_info($_SESSION['email'], 'dob_day'); ?&gt; &lt;/p&gt;

                &lt;p class='profile-country' &gt; Currently lives in: &lt;?php get_info($_SESSION['email'], 'country'); ?&gt; &lt;/p&gt;

                &lt;p class='profile-gender' &gt; Gender: &lt;?php get_info($_SESSION['email'], 'gender'); ?&gt; &lt;/p&gt;

            &lt;/div&gt;

            &lt;div class='profile-edit-info' &gt;



            &lt;/div&gt;

        &lt;/div&gt;

    &lt;/body&gt;

&lt;/html&gt;
</code></pre>
