Php variable $testing
correctly echos ajax file, but in html <?php echo $testing;?>
doesn't show anything.
Okay as the comments says I missunderstood how ajax works.
So the answer why it doesnt show anything is - php generates page and script and then the ajax script sends data to php file. To get ajax file data output I need to write JS which gonna put it into html - which is another question how to do that.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.