I am trying to re-do my site to wordpress, I have this problem. I have a form and on a submit php file runs and adds data to database. How do I run php file in wordpress?
<form method="POST" action="insert.php">
<p>
<label for="XX">XX</label>
<input type="text" name="XX" id="XX">
<label for="X">X</label>
<input type="text" name="X" id="X">
<label for="XXY">XXY</label>
<input type="text" name="XXY" id="XXY">
</p>
<input type="submit" value="add to database">
</form>
How do I run the php insert.php file? Thank you!
Or on the other hand, could I write in action the directory to the file? eg. wp-content/myphpfiles/insertgolf.php, would that work? Thank you, I am new to wordpress