I'm not sure why I keep getting this error, I have 4 different form fields and 3 seem to be working just fine but for some reason the 4th keeps giving me
Notice: Undefined index: heightwidth
the html is as follows:
Width: <input type="text" name="workwidth" value="" size="5" maxlength="5" />
Length: <input type="text" name="workleng" value="" size="5" maxlength="5" />
<p>
Upstand Peiece:
<p>
Peiece 1
<p>
Length: <input type="text" name="upstandlenght" value="" size="5" maxlength="5" />
Height: <input type="text" name="upstandwidth" value="" size="5" maxlength="5" />
<p>
and PHP:
$workwidth = (int)$_POST["workwidth"];
$workleng = (int)$_POST["workleng"];
$upstandlenght = (int)$_POST["upstandlenght"];
$upstandwidth = (int)$_POST["upstandwidth"];
As far as I can tell this should be working fine