I'm getting an error:
Warning: include(friday_set.php?x=First+Set&y=2): failed to open stream: No such file or directory in...
When I go to my url -> "friday_set.php?x=First+Set&y=2" everything comes out how it should
I understand the main reason is that I'm not properly encoding the url and the url can't quantify the & in the string
My code is this (which is similar to what is described in the php manual ):
<?php
$sel_name = 'First Set';
$admin_id = '2';
$query_string = 'x=' . urlencode($sel_name) . "&y=" . urlencode($admin_id);
include ("friday_set.php?" . htmlentities($query_string));
?>
I can't seem to spot the problem...anyone have a solution??