101
rated 0 times
[
105]
[
4]
/ answers: 1 / hits: 25823
/ 11 Years ago, wed, november 6, 2013, 12:00:00
When i click run button show this error in chrome console and don't alert anything
POST http://mysite/gd/add.php 503 (Service Unavailable)
index.php
<html>
<head>
<script src=http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js></script>
</head>
<body >
<script>
function go(){
$.ajax({ url: 'add.php',
data: {'q': ''},
type: 'post',
success: function(output) {
alert(output);}
});
}
</script>
<button onclick=go();>Run</button>
</body>
</html>
add.php
<?php echo Hello; ?>
More From » php