Thank you.
I added a section to unset all post variables with no data:
PHP Code:
if ($_POST['VD'] === '')
{unset($VD);
}
else
{$_POST['VD'] = $VD;
}
if ($_POST['HD'] === '')
{unset($HD);
}
else
{$_POST['HD'] = $HD;
}
if ($_POST['TD'] === '')
{unset($TD);
}
else
{$_POST['TD'] = $TD;
}
It's calculating everything correctly now, and it's not giving errors, but it's spitting the answer out on a blank page.
How can I take my answer ($TD) and set it equall to .htmlspecialchars($_POST['TD']). so that it displays the answer in the unfilled form field?
can I just use:
PHP Code:
.htmlspecialchars($_POST['TD']). = $TD
Thanks,
Nick