Jump to content

Wordpress: Custom form post method not working


melting_dog

Recommended Posts

Hi guys,

 

I know this is a Wordpress question by I am really hoping I can get a hand here (the WP forums are pretty useless).

 

I have created a custom form with this:

 

<form action="http://www.adamsherman.com.au/postureperfection/thankyou" method="post">

 

When I hit the submit button on the form, however, it just gives me a 404.

 

BUT, if I copy and paste the above URL into my browser it works fine (I.E. takes me to the thankyou page that mails the form info).

 

Heres the contact page if you want a go:

http://adamsherman.com.au/postureperfection/product-inquiry/?prodid=323

 

Would anyone know whats going on here?

 

Thanks!

 

 

Link to comment
Share on other sites

I have solved this myself.

 

When I left all the form fields blank it worked. I then tested all the fields and found that the Name field was causing the error. I do not know why but perhaps $name is a reserved variable. I changed it to $customer and it works fine!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.