I am using an onclick to submit the form and redirect to a different form including similar elements of a table. for example at the minute i have:
</form>'.
In my complete program i return a list of the top 10 candidates group wide with information displayed such as name rank where they are based what brand they sell etc. onclick i want the form to take the information of the candidate clicked and return a top 10 list of candidates from the same area as the clicked candidate. At the moment the form submits all of thier information when submitted. I have tried changing the name of the form each time but this just returns an error on page. Any help would be appreciated
{&OUT}
'<form method="post" name="">
<table border="2">
<input type="hidden" name="next" value="nextform" />'.
FOR EACH tablename:
ASSIGN icount = icount + 1.
<table border="2">
<input type="hidden" name="next" value="nextform" />'.
FOR EACH tablename:
ASSIGN icount = icount + 1.
{&OUT}
'
<input type="hidden" name="tablefield" value="' name '" />
<tr><td style="cursor:hand" onclick="submit()" >' name '</td></tr>'.
END.
{&OUT} '</table>
<input type="hidden" name="tablefield" value="' name '" />
<tr><td style="cursor:hand" onclick="submit()" >' name '</td></tr>'.
END.
{&OUT} '</table>
</form>'.
In my complete program i return a list of the top 10 candidates group wide with information displayed such as name rank where they are based what brand they sell etc. onclick i want the form to take the information of the candidate clicked and return a top 10 list of candidates from the same area as the clicked candidate. At the moment the form submits all of thier information when submitted. I have tried changing the name of the form each time but this just returns an error on page. Any help would be appreciated