Cleanup. Most of the code that was in here is handled now in ajax_save.php.
[openemr.git] / interface / forms / CAMOS / save.php
blob58feff7e282858c74ffc95cebc836ce144af5f22
1 <?php
2 //------------This file inserts your field data into the MySQL database
3 include_once("../../globals.php");
4 include_once("../../../library/api.inc");
5 include_once("../../../library/forms.inc");
6 include_once("../../../library/sql.inc");
8 if ($_GET["mode"] == "delete") {
9 sqlInsert("delete from form_CAMOS where id=$id and DATE_FORMAT(date,'%Y-%m-%d') like current_date()");
10 sqlInsert("delete from forms where form_name like 'CAMOS%' and form_id=$id and pid='".$_SESSION["pid"]."' and DATE_FORMAT(date,'%Y-%m-%d') like current_date()");
12 $_SESSION["encounter"] = $encounter;
13 formHeader("Redirecting....");
14 formJump();
15 formFooter();