I'm working on a webpage, and I have a multi-page form that asks for one or two variables on each page, and they are stored as variables in a session. At the end I would like to have a form with text boxes with the selected items showing.
Depending on what the users select in their process filling out the form, they are asked different questions, and I am trying to figure out how to show the parts of the form that they selected.
I'm assuming that this code is totally wrong, so your help is appreciated!
from the inside of a html form tag and in a normal table:
<? if ($step2 == "BID" || $step4 == "TID")
{ print "<tr>";
print "<td height="23" width="143"><font color="#FFFFFF">Stickout Length:</font></td>\n";
print "<td height="23" width="358"><font color="#ffffff"><input type="text" size="50" name="step3" value="echo $Length"></font></td>\n";
print "</tr>";
}
else if ($step2 == "PWQ")
{
print "<tr>\n";
print "<td height="23" width="143"><font color="#FFFFFF">Locking Width:</font></td>\n";
print "<td height="23" width="358"><font color="#ffffff"><input type="text" size="50" name="step3" value="echo $step4[1]"></font></td>\n";
print "</tr>\n";
print "<tr>\n";
print "<td height="23" width="143"><font color="#FFFFFF">Wheelscrew Thread:</font></td>\n";
print "<td height="23" width="358"><font color="#ffffff"><input type="text" size="50" name="step3" value="echo $step4[0]"></font></td>\n";
print "</tr>\n";
} ?>