So, i just realized a huge error i have made. I'm posting this just in case some more n00bs like me happen across this thread and learn that there is MUCH easier ways to do certain things.
Maybe this thread belongs in code critiquing but none the less, these are all very n00b things, so that's why i'm posting it here.
//these are all wrong never use these... unless you have a very good reason i suppose?
$tab1 = "no actual text but 8 spaces";
$tab2 = "same as above but 16";
// this next bit is wrong on so many levels. It's all as is because i didn't understand how
// to use HTML tags that have " (double quotes) in them and
// include tabs, new lines, and return carriages.
// I'm not going to correct ALL my work here, but some, and you'll see how much
// extra work and garbage code i put in because i didn't use \t \r \" so on and so forth
// WRONG
$txtInput = ' <input type="password" name="';
// Correct (this code alone removes a LOT of garbage that i used as a work around to achieve the
// below result.
$txtInput = "\t<input type=\"password\" name=\"$txtInputName\" size=\"$txtInputSize\" maxlength=\"$txtInputSize\">";
$txtInputSize = '30';
$txtInputSizeMobile1 = '3';
$txtInputSizeMobile2 = '4';
$txtInputSizeHTML = '" size="' . $txtInputSize . '" ' . 'maxlength="' . $txtInputSize . '">';
$txtFrstName = 'txtFrstName';
$txtLastName = 'txtLastName';
$txtEmailAdr = 'txtEmailAdr';
$txtMobileAC = 'txtMobileAC';
$txtMobilePF = 'txtMobilePF';
$txtMobileNU = 'txtMobileNU';
$txtPassword = 'txtPassword';
$txtInputFrstName = $txtInput . $txtFrstName . $txtInputSizeHTML;
$txtInputLastName = $txtInput . $txtLastName . $txtInputSizeHTML;
$txtInputEmailAdr = $txtInput . $txtEmailAdr . $txtInputSizeHTML;
$txtInputPassword = $txtInput . $txtPassword . $txtInputSizeHTML;
$txtInputSizeHTML = '" size="' . $txtInputSizeMobile1 . '" ' . 'maxlength="' . $txtInputSizeMobile1 . '">';
$txtInputMobileAC = $txtInput . $txtMobileAC . $txtInputSizeHTML;
$txtInputMobilePF = $txtInput . $txtMobilePF . $txtInputSizeHTML;
$txtInputSizeHTML = '" size="' . $txtInputSizeMobile2 . '" ' . 'maxlength="' . $txtInputSizeMobile2 . '">';
$txtInputMobileNU = $txtInput . $txtMobileNU . $txtInputSizeHTML;
echo $htmlhead . "\n"; echo $htmlbody . "\n";
echo $formstring . "\n";
echo $lblFrstName; echo '<br>' . "\n"; echo $txtInputFrstName; echo '<br>' . "\n";
echo $lblLastName; echo '<br>' . "\n"; echo $txtInputLastName; echo '<br>' . "\n";
echo $lblEmailAdr; echo '<br>' . "\n"; echo $txtInputEmailAdr; echo '<br>' . "\n";
echo $lblMobileNU; echo '<br>' . "\n"; echo $txtInputMobileAC . "\n"; echo $txtInputMobilePF . "\n"; echo $txtInputMobileNU; echo '<br>' . "\n";
echo $lblPassword; echo '<br>' . "\n"; echo $txtInputPassword; echo '<br>' . "\n";
?>