This is an open source web app that captures pictures from the webcam or phone camera and saves them to a server (php or asp). It uses HTML5 and JavaScript to do so and it has a Flash fallback for older browsers (like Internet Explorer) that’s don’t support the HTML5 video object.
Documentation:
HTML5 Webcam Photobooth Web App documentation.
See the working application:
HTML5 Webcam Photobooth Web App Live