I know we can call php script from jquery, with parameters, as given below.
$('.likelink').click(function() {
$.get("testapache1.php", { dom: "<?php echo $_GET['dom']; ?>" , link: $(this).text() , pro: $(this).attr('name') }, function(resp) {
alert(resp);
});
});
I am getting error as given below on click event.
GET http://lsdom.qbc.uws/testapache1.php?dom=10.3.2.0&link=acer%0A&pro=acer 404 Not Found 4ms
I just want my link this
GET http://lsdom.qbc.uws/testapache1.php?dom=10.3.2.0&link=acer&pro=acer
What could be the error in my jquery script ? Please help me.