Form direction to .php on localhost


You may want to make sure you are creating a brand new page template for this.

Sve the template in your Child Theme folder

In this template, place you form code where you want it to display.
In the tag, change it to this:

<form id="quiz" method="post">

Also, you should add your grade.php code in here as well.
Create a condition to see it the form is being submitted like so:

    enter grade.php code here
} else {
    show form

Create a new page and assign it the template your just created. It is probably set to default at the moment.

Save the page and click the visit page link.
Tryout the new form and see if it is working.

You should also grasp this concept for submitting data using a form on WordPress:

Gecko Boy 7 years 2016-10-15T21:27:39-05:00 0 Answers 0 views 0

Leave an answer