Jump to content

?id=something ???


jj20051

Recommended Posts

Use $_GET['id'] to grab if from the url, then use the comparison operator (==) to see if it matches your internal id

if(isset($_GET['id']) && is_numeric($_GET['id']))
{
    $id = $_GET['id'];

    if($id == '1234')
    {
        // match
    }
    else
    {
        // no match
    }
}
else
{
    // invalid id
}

Link to comment
https://forums.phpfreaks.com/topic/116752-idsomething/#findComment-600388
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.