Form post to external URL hijacked? (3 posts)

  1. billc108
    Posted 7 years ago #

    I've run into an interesting problem.

    I'm creating a form which should POST to an external URL, ie:

    <form method="post" path="https://secure.mydomain.com/somewhere/else.html">

    where mydomain.com is NOT the WP domain. It appears that the POST is being hijacked by something in WP as whenever I enter a value in the form field "name"

    <input type="text" name="name" value="">

    as I end up back on the originating page with the error:

    "Sorry, no posts matched your criteria."

    Obviously, I can do a workaround by changing the name of the field as all the other field names in the form work fine, but I'm wondering what's causing the unexpected redirection and if there are any other field names which are off limits.


  2. billc108
    Posted 7 years ago #

    Actually, I just realized that when I leave the value out of the "name" field, I still get redirected back to the WP page - though the values I entered are properly transferred.

    How do I get it to go out?


  3. wordup64
    Posted 6 years ago #

    I used javascript to post the form. It worked like a charm. However, I did have to use the format forms[0] instead of the form name.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.