The code is pretty simple if you break it down. PHP usualy looks scarey when its in one big block
This is the same as what you already have, just commented.
PHP Code:
This is a testfile.<br>
<?php
// start the PHP
if(isset($_GET['id'])){
// If the variable "id" has been set via the GET method of submition (ie, its in the URL of the page) then do the following :
echo 'ID: '.$_GET[.'id'].'<br>';
//echo "ID :" then print the Variable value, and start a new line
}else{
// If the variable id hasnt been set, do this :
echo 'No ID is set.<br>';
// print "No ID is set" and start a new line
}
// end the IF loop
if(isset($_GET['category'])){
// If the variable "'category'" has been set via the GET method of submition (ie, its in the URL of the page) then do the following :
echo 'CATEGORY: '.$_GET['category'].'<br>';
//echo "CATEGORY :" then print the Variable value, and start a new line
}else{
// If the variable 'category' hasnt been set, do this :
echo 'No CATEGORY is set.<br>';
// print "No CATEGORY is set" and start a new line
}
// End the IF loop.
//End the PHP code block
?>
<br><br>
Hopefully thats a little bit of help