trazix
11-11-2012, 01:03 PM
Using the link index.php?id=1 will work with the code bellow
if(isset($_GET['id']) && $_GET['id'] === '1') {
$url_parameter_id1 = $_REQUEST['id']; //REQUEST's parameter's from URL e.g id=?
PHP CODE HERE
}
However if i try index.php?id=12345 I just get the index.php page, how do i get it to accept id=12345 is a valid link and then use the parameter from the id to do something (e.g use it to refrence something in a database labled 12345)
if(isset($_GET['id']) && $_GET['id'] === '1') {
$url_parameter_id1 = $_REQUEST['id']; //REQUEST's parameter's from URL e.g id=?
PHP CODE HERE
}
However if i try index.php?id=12345 I just get the index.php page, how do i get it to accept id=12345 is a valid link and then use the parameter from the id to do something (e.g use it to refrence something in a database labled 12345)