{readyState: 4, getResponseHeader: ƒ, getAllResponseHeaders: ƒ, setRequestHeader: ƒ, overrideMimeType: ƒ, …}
abort
:
ƒ (e)
always
:
ƒ ()
catch
:
ƒ (e)
done
:
ƒ ()
fail
:
ƒ ()
getAllResponseHeaders
:
ƒ ()
getResponseHeader
:
ƒ (e)
overrideMimeType
:
ƒ (e)
pipe
:
ƒ ()
progress
:
ƒ ()
promise
:
ƒ (e)
readyState
:
4
responseText
:
""
setRequestHeader
:
ƒ (e,t)
state
:
ƒ ()
status
:
500
statusCode
:
ƒ (e)
statusText
:
"Internal Server Error"
then
:
ƒ (t,r,i)
__proto__
:
Object
POST http://www.chance.localhost/User.php 500 (Internal Server Error)
send @ jquery.min.js:2
ajax @ jquery.min.js:2
(anonymous) @ app.js:30
dispatch @ jquery.min.js:2
y.handle @ jquery.min.js:2
<script>
$(document).on('click', '#sign-up', function(){
{
$.ajax({
url:"Classes/User.php",
dataType: 'html',
data: {func: 'userRegistration'},
method:"POST",
success:function(){
alert('true');
}
});
}
});
</script>
<form name="form1">
<?php for ($i = 0; $i < count($userarray); $i++) { ?>
<textarea name="msg" id="booming<?php echo $userarray[$i] ?>" class="booming"
style="display:none; max-width: 100%; width: 100%;min-width: 100%">
</textarea>
<?php } ?>
<a href="#" onclick="submitChat()">Send</a><br/><br/>
</form>
<?php for ($i = 0; $i < count($userarray); $i++) { ?>
<?php } ?>
все нормально <form action="" method="post" enctype="multipart/form-data">
<label for="answer">Պատասխան</label>
<div class="form-group">
<textarea id="DescriptionNew" onkeypress="return _checkLength(this,255,event)"
onchange="return _checkLength(this,255,event)" name="answer" style="width: 100%;height: 200px;"></textarea>
<label for="fileUpload_oafileUpload" class="custom-file-upload">
<i class="fa fa-file-photo-o" style="font-size:20px;color:red; margin-left: 20px"></i>
</label>
<input id="fileUpload_oafileUpload" onchange="myFunction()" name="image" type="file">
</div>
<!-- <input class="fa fa-file-photo-o" type="file" name="image">-->
<br>
<button type="submit" name="post" class="btn btn-success">Հաստատել</button>
</form>
<script>
document.getElementById("fileUpload_oafileUpload").addEventListener("change",
function (e) {
document.getElementById("DescriptionNew").value = this.files[0].name;
});
</script>