Form Post Method to Page Not Working (4 posts)

  1. razbojnik
    Posted 9 years ago #

    I am installing a "home grown" poll on the main page of my blog. I have made a PHP coded form, using method=post, which SHOULD go to a page I created in the WordPress "realm." The form SHOULD post variables, and the PHP code on the "action" page (action=http://www.ecorry.com/page_id=6) is SUPPOSED to take the POST variables, update a table with the respondents' choices, and then display results based on calculations on the database data.

    The problem is, the action page is NOT receiving the POST variables, so it doesn't increment responses, and therefore it can't do the necessary calculations to display results.

    I also tried "get" method, but it messed up the WordPress "page_id=6" portion of the action URL.

    Is there a fix for this, so a page can accept POST variables, and do PHP calculations?

  2. apmeyer
    Posted 9 years ago #

    I am also having trouble accessing POST variables. I can't seem to find any help on the topic either.

  3. grosbouff
    Posted 8 years ago #

    I have this problem too, but i've seen that it was occuring only when my "gengo" plugin was enabled.
    If I disable it; it works.
    I opened a thread here : http://wordpress.org/support/topic/139230?replies=1#post-634115

  4. grosbouff
    Posted 8 years ago #

    I found the solution :
    the ACTION of my FORM was
    <?php echo $_SERVER['PHP_SELF']."?cat=12";?>

    i changed it to
    <?php echo $_SERVER['PHP_SELF']."&cat=12";?>

Topic Closed

This topic has been closed to new replies.

About this Topic