submitting the form causes an error "Unable to handle request for route `index.php`."
Fixed by building the location of index.php in php and using that instead of hard-coding index.php