Thanks! This has been informative to say the least and I apologize about the lack of details.
I DO know the names of all the variables, it's the values and the combination that I won't know.
The form is an order processing script, where the user selects one of the known products, selects if it's going to be Net30 or Credit Card, then submits information depending on Net30 or CC chosen as the payment method.
In that case you just build the logic by checking whether certain information has been submitted, e.g.
if (isset($_POST["FirstName"))
or whether it's empty:
if ($_POST["FirstName"] == "")
and other such logic.
Since I know the variables, I usually use:
<?php $FirstName = $_POST['FirstName']; $LastName = $_POST['LastName']; // rest of post items...
And so on. The problem that I have with this is that I'm declaring all of the variables one-by-one and I feel that it's being far more tedious than it should be. I also feel that calling "$_POST" everytime I need it is excessive, but I may be incorrect on this one.
There are two approaches:
1. You can turn on Register Globals (see http://php.net/manual/en/security.globals.php) but I advise against it because of its security implications, and it's also just not a very clean method. Register Globals allows you to reference $_POST["abc"] as just $abc. You can probably guess the dangers of this. Also worth noting is that Register Globals is deprecated as of version 5.3.0 and removed in PHP 6.0.0, so even …