How can I get a JSON via URL?
How can I get a JSON via URL?
 rafaelmakiyama            
            
                Posts: 4Questions: 1Answers: 0
rafaelmakiyama            
            
                Posts: 4Questions: 1Answers: 0            
            My doubt is. I have one Isset Function in my PHP file.

I want to select this isset to bring me the data
But i dont know how to do this.

This discussion has been closed.
            
Answers
You can't via a URL along since your PHP is specifically checking for a POST parameter. You would need to send a POST request!
Allan
Allan, so how do I have to do in my PHP? I didnt understand.
I think what Allan is saying - correct me if I'm wrong is that you need to set the parameter
cadastrarEstudante, otherwise the PHP script will never know you need to do something.You can set the data manually via the
dataoption.More info at https://datatables.net/reference/option/ajax.data
in the "data" function i have to pass the parameter "cadastrar estudante"?
Yes, that's the idea. Although you'd manually set the value like below.
Spot on I'd say! You could also do:
which in this context gives the same result.
Allan