Hey guys, I wanted to know how to send data to a wordpress page using $_POST ?
and that page has a template named data_page.php
What should be the action value in the form ? data_page.php or myweb.com/data-page/ ?
and thank you 😀
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are using mod_rewrite, (http://codex.wordpress.org/Using_Permalinks like this explains), and http://myweb.com/data-page/ is mapped to a function, you can simply write
<form action="http://myweb.com/data-page/" method="POST"></form>