$ajaxForm reply back from processing page using jquery and php
Posted
by Jean
on Stack Overflow
See other posts from Stack Overflow
or by Jean
Published on 2010-03-22T09:00:15Z
Indexed on
2010/03/22
9:01 UTC
Read the original article
Hit count: 470
Hello,
I have a page called guestbook.php in which contains
$('#guest_form').ajaxForm({});
When the form is triggered it goes to a save.php page which contains and values inserted
if($_POST['x']){
$xx = $_POST['x'];
$yy = $_POST['y'];
$zz = $_POST['z'];
$query_one = "INSERT INTO xxx (x1,yl,z1,z2) values ('$xx','$yy','$zz','00000')";
mysql_select_db($database_1, $1);
$Result = mysql_query($query_guest_one, $1) or die(mysql_error());
So far so good.
Now I run a select query based on the insert and display it in a div on the guestbook.php page. That is where I cannot do it.
All help appreciated.
Thanks Jean
© Stack Overflow or respective owner