$("#submitbutton").button().click(function() {
$.ajax({
type: 'POST',
url: 'tst/mmm.php',
data: { abc: "abcdefghijklmnopqrstuvwxyz" },
success: function(msg){
alert(msg);
}
});
});
# cat tst/mmm.php
<?php echo json_encode(array("first"=>"YyXy","last"=>"yyyyXXX")); ?>
Why cant i see an alert that tells me first=YyXy&last=yyyyXXX . if it means anything, there is access to mmm.php from remote. They are both on apache. Where should i look for the response of this post? Sorry for the lame questions in the subject,i’m new to it. Thanx!!
EDIT 1: html code:
<body>
<div id=container>
<div id="first">
<form id='form1'>
<button id="submitbutton" type="submit">Submit</button></br></br>
</form>
</div>
EDIT 2 :
Do I need special user:group permissions for the html to post to php?
Should I use some special settings to allow access to mmm.php in apache configuration (httpd.conf) ?
Well, In the docs they state the following:
so i used their example and now it looks like that(and works) :
thank you guys!!