4
People try to give me a force around here, I’ve searched and I can’t find an answer that answers me.
Come on!
I am working with php classes, I would like to pass data from a form through ajax. However I have doubts in the execution of the URL, I do not know how it will look.
$.ajax({
type:'post',
url:'DUVIDAAAA',
ajax:'1',
success: function (data){
alert(data)
}
});
In my url I need to enter my PHP class ! however if I put a direct path it enters but error pq the instantiated class was not requested.
I call my classes with an autoload.
Very obscure yet. What’s the problem, specifically?
– felipsmartins
The url will be where POST/GET will exist. If you create cookie.php and inside it
$_POST['bolacha']
the URL must be http://seu-site.com/biscoito.php.– Inkeliz
URL must be the page to which you send the data...
– RFL
I need to access my class.php file and in it access the function I want
– Pedro Soares
@Pedrosoares in the Voce URL puts the URL that your system would have if accessing the class/method...
– RFL
yes but my problem is so, I even pass the values to class but there it gets lost, is there a way for me to go through the URL tbm a out of already define which function that data will ? @Rafaelacioly
– Pedro Soares