Home > Article > Backend Development > Error Undefined index , here's what's wrong
Every line reports an error, I suspect it is an environmental problem, but the echo is normal. Please give me some advice on the code
Page
<code class="php">$path = isset($_REQUEST['path']) ? $_REQUEST['path'] : PATH;</code>
You can use print_r($_REQUEST); to output the elements in the $_REQUEST array;
This error is that there is no array index element in $_REQUEST.