<input type="file" id="mypic" accept="image/*">
<form method="post" action="takephoto.php" enctype="multipart/form-data">
<input type="file" accept="image/*" name="file">
<input type="submit">
</form>
<input type="file" id="mypic" accept="image/*">
<form method="post" action="takephoto.php" enctype="multipart/form-data">
<input type="file" accept="image/*" name="file">
<input type="submit">
</form>
Image:
<input type="file" accept="image/*" capture="camera" />
Video:
<input type="file" accept="video/*" capture="camera" />