This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 4

I cannot send data through 'Enable Rules to Send Form Data to Another Website'


  1. sukrub
    Member

    Hi:

    I have set up a simple form. I am trying to send data to another URL through 'Enable Rules to Send Form Data to Another Website' under Logic tab.

    The receiving URL (add-court.php) gets an empty $_POST varaible. What am I doing wrong?

    Here is the receiving URL's code

    <?php
    
    echo '<h1>Add Court</h1>';
    
    if ($_POST) {
    	echo '<h1>There is post data</h1>';
    }		
    
    ?><pre><?php
    	print_r($_POST);
    ?></pre>

    Here is the screenshot of the Rules.
    http://serviceguy.com/MachFormScreenShot.jpg

    And here is the receiving URL output
    http://serviceguy.com/MachFormScreenShot2.jpg

    Posted 8 years ago #
  2. dustinspires
    Member

    In screen shot #1 Send form Data to URL is set to "http://localhost/memberTest/add-court/". In your OP you reference the recieving URL as "add-court.php". Is add-court.php your default page or is index.php your default page?

    Posted 8 years ago #
  3. sukrub
    Member

    It is a WordPress site. Because of the permalinks http://localhost/memberTest/add-court/ means http://localhost/memberTest/add-court.php.

    Form correctly invokes add-court.php, but no POST data.

    Posted 8 years ago #
  4. yuniar

    I suggest to test it using requestbin:
    http://requestb.in/

    Create a requestbin URL and then use it as your logic URL.
    You can then inspect all the posted data there.


    MachForm Founder

    Posted 8 years ago #

RSS feed for this topic

Reply