A
A
Alexander Sharomet2014-02-19 17:07:41
PHP
Alexander Sharomet, 2014-02-19 17:07:41

Wordpress submit external file

Hello.
Wordpress question.
I created my own theme and in the page editor I registered a form that submits to an external file that is also in the theme

<form method="POST"  action="/wp-content/themes/site/mail.php">

but when submitting to this file, it gives me that there is no such file on the server
The requested URL /wp-content/themes/site/mail.php was not found on this server.

How can I fix this problem?
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Zelenin, 2014-02-19
@zelenin

If it says it doesn't exist, then it doesn't exist.
You need to write like this:
And in general it is necessary to use actions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question