Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor David Cramer

    (@desertsnowman)

    Yes. Go to the variables tab. Add a variable, give it a name and set it as passback.

    Thread Starter Tim Berneman

    (@tberneman)

    How do I access the variable in PHP in my redirected page? My example is variable name “test1″, value=”%document_number%”, behavior=”Passback”. Do I use $test1, or $_GET[‘test1’], or $_POST[‘test1’], or what?

    Thread Starter Tim Berneman

    (@tberneman)

    I just saw it in the URL. Is that the only place or will one of the Super Globals I mentioned above work?

    Thread Starter Tim Berneman

    (@tberneman)

    Answered my own question with some testing. $_REQUEST[“test1”] and $_GET[“test1”] both work.

    Also, for debugging I found this to be extremely helpful:

    <?php phpinfo(32); ?>

    This prints out all the “PHP Variables”!

    Plugin Author Josh Pollock

    (@shelob9)

    Yes, you are correct. It is better to use $_GET than post. Also be sure to sanatize and validate that URL parameter as it is easily editable.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Passing Form Variables’ is closed to new replies.