title: process php whithout refreshing page
body: <p>I have a problem with process to insert database, I have 3 tables and I want to proccess 3 tables alternately. 
  example : 
  I want to process insert into table A , from data table A continue to table B, and from data table B continue to table C whithout refreshing page, I want use Ajax , is there any script to used?
  my script this : </p>
  
  <pre><code>&lt;?php 
  break;
      case submit :
  @mysql_query("INSERT INTO table_A(id,field1,field2,field3,date) VALUES ('','$field1','$field2','$field3','$datenow')");
  echo "&lt;meta http-equiv='refresh' content='0;URL=index.php?mod=process&amp;act=step1'&gt;";
  break;
      case step1 :
  @mysql_query("INSERT INTO table_B (id,field1,field2,field3,date) VALUES ('','$field1','$field2','$field3','$datenow')");
  echo "&lt;meta http-equiv='refresh' content='0;URL=index.php?mod=process&amp;act=step2'&gt;";
  break;
      case step2 :
  case step1 :
  @mysql_query("INSERT INTO table_C (id,field1,field2,field3,date) VALUES ('','$field1','$field2','$field3','$datenow')");
  echo "&lt;meta http-equiv='refresh' content='0;URL=index.php?mod=process&amp;act=OK'&gt;";
  ?&gt;
  </code></pre>