melting_dog Posted December 29, 2011 Share Posted December 29, 2011 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 https://forums.phpfreaks.com/topic/254005-wordpress-custom-form-post-method-not-working/ Share on other sites More sharing options...
melting_dog Posted December 30, 2011 Author Share Posted December 30, 2011 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 https://forums.phpfreaks.com/topic/254005-wordpress-custom-form-post-method-not-working/#findComment-1302390 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.