[wp-hackers] Integrating a form in a page template

Sam Angove sam at rephrase.net
Wed Nov 1 02:00:16 GMT 2006


On 11/1/06, R.J. Kaplan <just.be.happy at gmail.com> wrote:
> Hi all,
> I'm trying to integrate a contact form into one of my sites by
> creating a page template with the form in it. i set the 'action' to <?
> php echo $_SERVER['REQUEST_URI'];  ?> and then to <?php echo
> get_permalink(); ?> though they both give the same address, except
> that the $_SERVER one is relative. anyways, when I submit the form,
> (at the same page!) I get a WordPress 404, even though it shows the
> permalink of a valid page in the browser, (and if i hit enter, it
> takes me to that page)

What variables are you POSTing? It's possible that they're interfering
with variables WordPress uses internally, hence the 404. Try the query
diagnostics plugin.


More information about the wp-hackers mailing list