Hello everyone!
I would like help on the system "AJAX" that can send and retrieve data.
For the moment I can send the data with an Ajax request and store it on my server with PHP.
Then I would like to know how to retrieve data using "AJAX.LastData".
With my echo 'success'I should get 'success' in my text.
And when I test my AJAX.LastData isempty
Thanks for your answers. :)
formulaire.php :
<?php
require_once('cn.php');
$message = $_GET['mes'];
$sql=$pdo->exec('INSERT INTO informations SET message_informations="'.$message.'" ');
?>
test.php :
<?php
echo "success |";
?> <img src="smileys/smiley1.gif" border="0" align="middle" />