I am new to wordpress and i want to transfer data from one page to another in wordpress. I used php to post my form data to a wordpress page. My code is:
<form method='post' action='http://www.example.com/www/create_website/'>
.....
<input type ='submit' value = 'OK'/>
</form>
But every time i clicked the submit button i got error page not found. Why it is so because link is loading the page in browser but not working for form post. How can i solve the issue???
If you need to go to one of your WordPress page, please don’t put the direct link in action.
Instead of that put the below php code.
If you wants to go to a particular file inside your template directory put the below code
Check this WordPress codex page for more about bloginfo.
will generate the base site url.