[resolved] Trying to get custom form working (3 posts)

  1. MeltingDog
    Posted 3 years ago #

    Hi guys,

    Having a bit of an issue.

    I have a custom form that I created using php. I have used the php-to-page plugin so that the form, whilst on it own file, appears in a WP page. Likewise, the thankyou page is treated in the same way.

    What I can't get working is the post action. ie this line:

    <form action="http://mysite.com/thankyoupage/‎" method="post">

    Copying that URL into a browser brings up the correct page, but trying to access it via a form submit button brings up the 404.

    Could anyone help me out here? Thanks!

  2. MeltingDog
    Posted 3 years ago #


  3. MeltingDog
    Posted 3 years ago #

    Yeah...I solved it myself:

    When I left 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!

Topic Closed

This topic has been closed to new replies.

About this Topic