I have two forms inside a page
<form name="invoice" action="Invoice.php" method="get">
<form name="item" action="<?php echo $PHP_SELF ?>" method="post">
<input type="text" size="8" name="invno" value="<?php echo($invno); ?>">
<input type="text" size="12" name="invdate" value="<?php echo($invdate); ?>">
<?php
if (isset($row)) {
$j = $row;
$j++;
}
else {
$j = 1;
}
?>
<?php
for ($i = 0; $i < $j; $i++) {
$k = $i + 1;
echo ('<tr>');
echo ('<td>');
echo ($k);
echo ('</td>');
echo ('<td>');
echo ('<input type="text" size="30" name="desc['.$k.']" value="'.$desc[$k].'">');
echo ('</td>');
echo ('<td>');
echo ('<input type="text" size="2" name="qty['.$k.']" value="'.$qty[$k].'">');
echo ('</td>');
echo ('<td>');
echo ('<input type="text" size="10" name="price['.$k.']" value="'.$qty[$k].'">');
echo ('</td>');
echo ('</tr>');
}
?>
<tr>
<td colspan="4" align="right">
<input type="hidden" name="row" value="<?php echo($k); ?>">
<input type="submit" value="Add One More Row">
</td>
</tr>
</form>
<input type="submit">
</form>
for the inner <form>, I used it to add a new row to the list, but also keep all data in the page
and for the outter <form>, I want it to act like normal redirect form
whereas this <submit> will direct me to the <invoice.php> (all variable inside this page should be send to another page)
the problem is I cannot make the outter <form> to be functional
any help please?
thanks