PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I am working on a little project and understand that my problem could potentially be solved using 'isset'. However, I do not know how to use it properly, so I would greatly appreciate if someone could tell me what to write instead.
Okay, I am getting an error saying 'undefined index on line 7'. How can I rewrite this to work? I appreciate the help!
if(isset($_GET['name'])){
$view = $_GET['name'];
}else{
echo "warning: name was not passed";
}
// or ...
$view = (isset($_GET['name'])?$_GET['name']:'');