Posting form data to an external file (3 posts)

  1. Mayur Somani
    Posted 5 years ago #


    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,


    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
    Posted 5 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
    Posted 5 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic