Jump to content

North

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by North

  1. You can't really do that. There is an alternative. You can get what the user submitted and use a switch/case statement to get required variable. Since you don't seem have an infinite number of variables, this should work. Sorry if I'm not really clear. I can't think of a better way to explain this. Maybe with some code? switch $_POST['input'] { case 'a': $var = $a; break; case 'b': $var = $b; break; // Repeat for the other 3... }
×
×
  • Create New...