Question : How do I make these graphical links also submit a form?

I have the following code:

<form name="myform" action="index.php?option=com_job" method="post" onsubmit="return validate_form(this)">
<div align="center">
 <img border="0" src="components/com_job/images/step1_do.png" width="124" height="79" /></a>
  <a href="index.php?option=com_job&task=step2&id=<?php echo $this->application->id; ?>"><img border="0" src="components/com_job/images/step2.png" width="124" height="79" />
  <a href="index.php?option=com_job&task=step3&id=<?php echo $this->application->id; ?>"><img border="0" src="components/com_job/images/step3.png" width="124" height="79" /></a>
  <a href="index.php?option=com_job&task=step4&id=<?php echo $this->application->id; ?>"><img border="0" src="components/com_job/images/step4.png" width="124" height="79" /></a>
  <a href="index.php?option=com_job&task=step5&id=<?php echo $this->application->id; ?>"><img border="0" src="components/com_job/images/step5.png" width="124" height="79"></a>
</div>
          <input name="button" class="submitfat" type="button" value="Cancel" onclick="window.location='index.php?option=com_job&task=panel'"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <input name="button" class="submitfat" type="button" value="Save & Finish Later" onclick="submitJob('stepLater', '');"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <input name="button" class="submitfat" type="button" value="Save & Continue to Education and Skills" onclick="submitJob('step2', 'save');">
</form>

and I would like it so that if the user clicks on any of the graphically steps it automatically submits the form as if they clicked the "Save & Continue To Education and Skills" button.

Answer : How do I make these graphical links also submit a form?

give each query a dummy column that uniquely identifies it
and then use row_number to pick just the first value


SELECT column1, column2, column3, column4
FROM (SELECT x.*, ROW_NUMBER() OVER (PARTITION BY column1, column2, column3 ORDER BY dummy) rn
FROM (SELECT 1 dummy, 'a' column1, 'b' column2, 'c' column3, 'Note 1' column4 FROM DUAL
UNION ALL
SELECT 2 dummy, 'a' column1, 'b' column2, 'c' column3, 'Note 2' column4 FROM DUAL) x)
WHERE rn = 1

Random Solutions  
 
programming4us programming4us