Doh! After reading through my thread to check it made sense and was correct, I have noticed my mistake.
Sorry to all for the piontless thread, I'd been looking at it for ages before I posted.
LoL
I have created the hidden field and I do not need to, the code should be:
Code:
<form name="targets" action="save_targets.php" method="post">
<hr>
<h3><center>Add New Target</center></h3><br>
<table border="0" align="center" cellpadding="2" width="98%">
<tr>
<th class=table>Target</th>
<th class=table>Type</th>
<th class=table>How</th>
<th class=table>Whom</th>
<th class=table>By When</th>
</tr>
<tr>
<td class=table><textarea name="target" cols="13" rows="3"></textarea></td>
<td class=table><select name="type">
<option value="NIL">NIL</option>
<option value="A">A</option>
<option value="B">B</option>
<option value="C">C</option>
</select></td>
<td class=table><textarea name="how" cols="13" rows="3"></textarea></td>
<td class=table><input type="text" name="whom" size="8"></td>
<td class=table><script>DateInput('when', true, 'DD-MM-YYYY')</script></td>
</tr>
</table>
<input type="submit" value="Save Target">
</form>
Cheers
Bookmarks