1

I have a php file, let's call it form.php . It's embedded in wordpress as a code block. The form is as below.

<FORM NAME="entitynames" method='POST' id='entity_form'>
<INPUT method='text' name='entity' style='width:20em' >
<INPUT type="submit" value="Submit" >
</FORM>

It's working as expected, calling the form.php with $_SERVER['REQUEST_METHOD'] == 'POST'and embedding the results in the wordpress container. My question is this expected behavior? I thought I would have to use ajax to prevent the page from being redirected to form.php. Why is the results of form.php showing up in the container?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.