no, I don't think that's what he's asking for.
What I would do is have a big php file that contains a separate html page for each tab and have a big conditional that reads $_POST["step"] to know which page to display. On each successive page previous input (and the current step) is stored in hidden input tags. So then you just have something along the lines of: (this would be the code for the "step 4" branch of the main conditional. step 1 was name, 2 was age, 3 was birthday, 4 -the last step- is username)
Code: Select all
print <<<xxxendxxx
<form name="e;sendTo"e; method="e;post"e;>
<input type="e;hidden"e; name="e;name"e; value="e;$_POSTї"e;name"e;]"e;>
<input type="e;hidden"e; name="e;age"e; value="e;$_POSTї"e;age"e;]"e;>
<input type="e;hidden"e; name="e;age"e; value="e;$_POSTї"e;birthday"e;]"e;>
<input type="e;hidden"e; name="e;step"e; value="e;0"e;>
</form>
<table align="e;center"e; width="e;50%"e; height="e;500"e;>
<tr>
<td onclick="e;document.sendTo.step.value = 1; document.sendTo.submit()"e; align="e;center"e; valign="e;center"e;><a href="e;#"e;>Step 1</a></td>
<td onclick="e;document.sendTo.step.value = 2; document.sendTo.submit()"e; align="e;center"e; valign="e;center"e;><a href="e;#"e;>Step 2</a></td>
<td onclick="e;document.sendTo.step.value = 3; document.sendTo.submit()"e; align="e;center"e; valign="e;center"e;><a href="e;#"e;>Step 3</a></td>
<td align="e;center"e; valign="e;center"e; bgcolor="e;gray"e;>Step 4</td>
</tr>
<tr>
<td colspan="e;4"e; align="e;center"e;>
xxxendxxx;
print "e;<br>Username: <input type=\"e;text\"e; name=\"e;username\"e;"e;;
if ($_POSTї"e;username"e;]) print "e; value=\"e;{$_POSTї'username']}\"e;"e;
print "e;<"e;;
print <<<xxxendxxx
<input type="e;hidden"e; name="e;name"e; value="e;$_POSTї"e;name"e;]"e;>
<input type="e;hidden"e; name="e;age"e; value="e;$_POSTї"e;age"e;]"e;>
<input type="e;hidden"e; name="e;age"e; value="e;$_POSTї"e;birthday"e;]"e;>
<input type="e;hidden"e; name="e;step"e; value="e;finished"e;>
<input type="e;submit"e; value="e;Submit"e;>
</td>
</tr></table>
xxxendxxx;
Of course, for previous steps you would need lines similar to
Code: Select all
print "e;<br>Username: <input type=\"e;text\"e; name=\"e;username\"e;"e;;
if ($_POSTї"e;username"e;]) print "e; value=\"e;{$_POSTї'username']}\"e;"e;
print "e;<"e;;
And you'd also have to conditionally write the hidden attributes in the main tr/td in previous steps based on whether you actually have the values to make sure data is preserved if you return to the 3rd step after completing it and going back to the 2nd step.
And the final branch of the conditional, "finished", would need to be different of course.
It would be possible but fairly difficult and very hard to maintain to construct a series of conditionals so that there's only one main layout (instead of copying it 4 times for the different steps) and the hidden fields/main td are outputted as appropriate to the current step.
Remember to remove the hidden inputs in the sendTo form for previous steps, whether or not you choose to make it all one layout with conditional segments.
I should charge for this -_-