This is strange. On MacOS MAMP page loads no problem. On Windows MAMP with the exact same files page fails to load with: Undefined variable: query
<form>
<input type="search" name="q" value="<?php echo esc($query) ?>">
<input type="submit" value="Search">
</form>
I have to define $query to get it to work.
value="<?php $query = ""; echo esc($query) ?>"
Can anyone shed some light on why this might be happening? Maybe MacOS MAMP is more error tolerant?
Thanks