Re: [PHP] PHP sample code for XMLHttprequest with jQuery



Otto Wyss wrote:
I'm currently evaluating jQuery as a Javascript library for my web site
but first would like to see a working sample with PHP doing
XMLHttprequest. Is anyone else using jQuery and has some sample code to
look at?


post.php
--------- >8 ----------------
<?php

echo (!empty($_POST) ? 'post arrived' : 'mail lost in transit');

?>

now point your 'ajax' request at post.php


O. Wyss

.



Relevant Pages