Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <label>
- <span>Clock:</span>
- <input type="radio" name="clock" value="1">In
- <input type="radio" name="clock" value="0">Out
- </label>
- </div>
- </label>
- if (isset($_POST['submit']))
- { if ($_POST['clock'] == 1)
- { $time="T_IN";
- }
- else if ($_POST['clock'] == 0)
- { $time="T_OUT";
- }
- }
- $sql = "INSERT INTO TIME (EMP, $time, ITEM, NOTE)
- VALUES ('".$_POST['EMP']."', '".$_POST['clock']."', '".$_POST['item']."', '".$_POST['message']."')";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement