I take some photos using the webcam. HTML
looks like this:
<div class="camera">
<video id="video">Video stream not available.</video>
</div>
The taken photo is displayed using a <canvas>
:
<div class="output">
<canvas id="canvas"></canvas>
</div>
Below, I have a <form>
with a save button:
<form method="post">
<button name="savephoto">Save photo</button>
</form>
This is how I check in PHP
if save photo botton is pressed: if (isset($_POST['savephoto']))
Now, how could I get the photo (from canvas
) in PHP
only using JavaScript
?