rigorlicious wrote:Can someone tell me what I'm doing wrong here?
Yeah... you're doing the same thing twice, only the second time around you're doing it in a more error-prone way. 🙂
Why do you have this:
$templating = $_POST["templating"];
$del_fit = $_POST["del_fit"];
$wearhousepickup = $_POST["wearhousepickup"];
$delivery = $_POST["delivery"];
after the block if if() statements that defines those very same variables?
As samuelcook points out, a more compact version of what you're doing can be achieved using the ternary operator (although I'd still suggest using [man]isset/man in the conditional part; otherwise you're going to be generating E_NOTICE level errors if the array index doesn't exist).
EDIT: Also, when posting PHP or HTML code, please use the board's [noparse]
..
or
..
(respectively)[/noparse] bbcode tags as they make your code much easier to read and analyze.