Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Thanks for your answer. No, the variables $var1 and $var2 are NOT defined. I just pointed the fact that they are parsed by PHP. I want to replace these expressions. Commented May 31, 2016 at 10:19
  • @Nathan You can't work with undefined variables. That's why I have commented how they should be defined using $_POST. Also if $var2 is not defined than $_POST[$var2] makes no sense. Commented May 31, 2016 at 10:28
  • I'm sorry, you are right. My question was false. The fact is that $var2 is not defined but $_POST['var2'] is. I forgot to take out the $. Edited question. Commented May 31, 2016 at 10:54
  • @Nathan Check updated answer on how to extract POST to variables. Commented May 31, 2016 at 11:09