How to link to other php file in wordpress theme folder?

I’ve added new template in wordpress’s theme folder and a page that uses that template. In my php script there is a button that has onClick function:

<INPUT TYPE="button" onClick="parent.location='MYQUIZTABLE.php'" VALUE="SEND">

The button (after pressed) should link to other php script (called MYQUIZTABLE.php), but “404 not found” is shown on localhost. Where should i put second php script? Or how can i link to that script in my code?

Read more here: How to link to other php file in wordpress theme folder?

Leave a Reply

Your email address will not be published. Required fields are marked *