*******************************************************************************************************
- Code: Select all
..//php codes.
...
...
...
...
<html>
<head>
<link rel="stylesheet" href="css/std.css"; type="text/css"/>
<script language="JavaScript">
var f = document.calform;
function valForm(f)
{
if (f.w0.value == "") {
alert("Please enter your ID!");
f.w0.focus();
return false; }
if (f.w1.value == "") {
alert("Please enter your Name!");
f.w1.focus();
return false; }
if (f.w2.options[f.w2.selectedIndex].value == 0) {
alert("Please select one of the shift from the Shift ");
f.w2.focus();
return false; }
return true;
};
</script>
</head>
<body>
<form method="post" action="shifthandover.php">
.....
.....
...
.....
.....//my table
<tr class="lbg">
<input type="button" name="process" value="New" onClick="window.open('shifthandover.php','_self');"/>
<input type="submit" name="process" value="Save" onClick="valForm(this.form); this.form()"/>
<input type="submit" name="process" value="Search"/>
</td>
</tr>
<tr>
<td colspan=2> </br> </td>
</tr>
<td colspan=2> </br> </td>
</tr>
</table>
</div>
</form>
</bodY>
</html>



tq gesf
