I have a webpage with an updateable form on. The form has 2 submit buttons
(therefore 2 <FORMS> as you cannot nest forms in HTML)
1 submit button updates the information and the other updates and closes the
record.
The form is pretty large and therefore would be poor coding to write again.
Below is some example code:
1ST FROM
echo "<FORM ACTION='update.php' NAME='help' METHOD=POST>";
echo "<tr><td>Company:</td><td><input type=text class=box name='company'
size=30 value='".$company."'></td></tr>";
echo "<tr><td>Contact:</td><td><input type=text class=box name='contact'
size=30 value='".$contact."'></td></tr>";
echo "<tr><td>Customer ID:</td><td><input type=text class=box name=cid
size=10 value='".$cid."'</td></tr>";
echo "<tr><td>Telephone no:</td><td><input type=text class=box name=telno
size=15 value='".$telno."'></td></tr>";
echo "<tr><TD ALIGN=left valign=top><INPUT TYPE=SUBMIT VALUE='Update
Fault'></FORM></TD>";
// 2ND FORM
echo "<FORM ACTION='close.php' NAME='close' method=post>
?
?
?
echo "<INPUT TYPE=SUBMIT VALUE='Update and Close Fault'></FORM>";
How do I code the 2nd form to get the updated variables from the 1st form?