Forums

runPHP and POST variables (2 posts)

  1. theangelkiller
    Member
    Posted 6 years ago #

    tried searching for this but the difference between the browsers POST variables and post as in an actual WP post is hard to sort out.

    anyway, i'm trying to use a form within a page written in the page writer. the form links to another wordpress page using action="http://mysite.com/?page_id=255"

    the page the form shoots to is using php, courtesy of the runPHP plugin. the PHP works fine. however, i'm having a problem accessing my POST variables, which makes my form less than useful.

    i'm trying to get the post variables with
    $myvariable = mysql_real_escape_string($HTTP_POST_VARS['postvarname']);

    somewhere in there it's like my POST_VARS array is just...either not being written to, or being emptied after the fact. i've tested the pages without outside of wordpress (i.e., without making wordpress pages of them) and they work OK then.

    anyone know what's up with this?

  2. shazron
    Member
    Posted 6 years ago #

    I would use $_POST['postvarname']?

Topic Closed

This topic has been closed to new replies.

About this Topic