Can I access the camera of an iOS or Android smartphone using HTML5, Javascript, or PHP so the users can take pictures and view it after it has been taken?
You should be able to use the camera
API with Javascript.
https://developer.mozilla.org/en-US/docs/DOM/Using_the_Camera_API