WordPress.org

Ready to get started?Download WordPress

Forums

Posting form data to an external file (3 posts)

  1. Mayur Somani
    Member
    Posted 4 years ago #

    Hi,

    I have used a normal php form in wordpress sidebar and I am using an external file to process the form. The form method is POST. However none of the values is actually POSTed. You can check the demo site here,

    http://www.agentwp.dreamhosters.com/

    Can't I post data outside wordpress? How can I make that form work? Please note that I am familiar with cforms, contact form 7 and many other plugins, but due to my specific requirements, I can't use any plugin. I have to use a plain php form.

    Any inputs are appreciated. You can be very technical in explanation, that's ok.

    Thank you for your time.

  2. wordup64
    Member
    Posted 4 years ago #

    Hey, I used javascript to post the form. You can see my code on the following page: http://www.getprofitable.com/blog However, one thing that I had to use was the forms[0] format for the document.forms[0].submit(); instead of the document.myform.submit();

    Good luck.

  3. Mayur Somani
    Member
    Posted 4 years ago #

    Thanks for reply. However, I fixed the php solution :)

Topic Closed

This topic has been closed to new replies.

About this Topic