Is it possible to retrieve an external file (database) via link or form ( example.php) with ajax, then execute any php code within that file, which in turn displays it to the user?
Thanks,
Bart
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you’re asking to use ajax to retrieve the php file and execute it after retrieving it, I think the answer is “no”. The ajax is client side, and the php is server side. You CAN however call the php file FROM the jquery using .GET or .POST, process it with the data supplied, and return the results TO the ajax function to display it however you’d like. There are thousands of simple examples if you google it.