Ec (2); & lt ;? Php & nbsp; include (& quot; incconnect. php & quot;); & nbsp; database connection & nbsp; include (& quot; incbase_function.php & quot;); & nbsp; // The get_value Function & nbsp; $ buy & nbsp; get_value (buy, post); & nbs script ec (2); script
Include ("inc/connect. php"); // database connection
Include ("inc/base_function.php"); // The get_value function is provided here.
$ Buy = get_value ('buy', post );
$ Month = get_value ('month', post );
$ Day = get_value ('day', post );
$ Time = get_value ('time', post );
$ Sum = get_value ('sum', post );
$ Name = get_value ('name', post );
$ Sex = get_value ('sex', post );
$ Mo = get_value ('mo', post );
$ Caption = get_value ('caption ', post );
$ Dtime = $ month. 'month'. $ day. 'day'. $ time ';
If (empty ($ name) | empty ($ sum) | empty ($ mo )){
Alert ('Sorry, please fill in your meal information carefully and we will contact you in time! ','');
} Else {
$ SQL = "Insert into gx_buy (buy, sum, name, sex, caption, mdt, mo) value ('$ buy',' $ Sum', '$ name ', '$ sex',' $ caption ',' $ dtime', '$ m ')";
Mysql_query ($ SQL) or die (mysql_error ());
Alert ('Congratulations, the order is successful. We will get in touch with you in the shortest time! ', $ _ SERVER ['HTTP _ referer']);
}
?>