WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. MeltingDog
    Member
    Posted 2 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
    Member
    Posted 2 years ago #

    anyone?

  3. MeltingDog
    Member
    Posted 2 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