access $_POST[data] in custom page template.
-
I have created a simple template for a page that calls getheader() and getfooter() with the content and code inbetween. The page displays fine.
However, when trying to use a script that works just fine outside of WP I run into a problem. And no- there should be no conflict with WP functions ect. Its a rather simple script summarized below:
if $_POST data exists :
process data
else :
display formWhen I first visit the page, the form displays as it should, however when I fill it in and submit, all I get is the message: “Sorry, no posts matched your criteria.” where the content should be. Its as if WP thinks I was trying to do a search. However, I have made sure the POST variables do no match any used in WP. It would seem that WP is highjacking my POST data and not allowing my script to access it. Any idea if and how this is possable?
As a side note, prior to WP templating system (I forget which version exactly), I creating somthing similar and although I included WP in the page I had no problems.
- The topic ‘access $_POST[data] in custom page template.’ is closed to new replies.