Reputation: 89
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?
Upvotes: 0
Views: 1048
Reputation: 428
Include full url from MYQUIZTABLE.php file. You can use get_template_directory(); or get_template_directory_uri() for this.
Upvotes: 1