Take the 2-minute tour ×  I have been working on making a form
that uploads an image through ajax with php doing the upload.
For some background I am having an issue where the
xhr.readyState and .Status seem to run and upload.php seems to
run (in safari it goes and runs upload.php it seems to me... I
have not used the ajax/javascript debugger too much) but it will
run my else statement (i believe becuase it goes to status 2 and
then 4) and then run xhr.responseText. Unfortunately it does not
seem to run the upload.php right (which may be a php problem). I
went ahead and replaced the php with a print statement which
when running alert(xhr.response.Text) comes up with a blank
alert statement and I am at a loss where the issue is. Below is
my form code, ajax code and the php code i'm trying to get a
response from.  Does anyone see the issue I am having? I am new
to AJAX and have not worked with PHP in some time. I am working
on upping my ajax/javascript skills but from my view it does not
seem to be getting the