lt;/div gt;
lt;/div gt;
lt; div id= container gt;
lt;/div gt;
lt;/div gt;
lt; div id= footer gt; amp; copy; lt;? php if (date (Y) lt;= 2011 ) echo 2011 raquo ;; else echo ( 2011 - .date (Y)); echo ( laquo ;, amp; amp; );? gt; lt;/div gt;
lt;/body gt;
lt;/html gt;
lt;! DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN # justify gt; lt; html xmlns= # justify gt; lt; head gt;
lt; meta http-equiv= Content-Type content= text/html; charset=utf - 8 / gt;
lt; title gt; amp; amp; lt;/title gt;
lt; link rel= stylesheet href= css/main.css / gt;
lt; link rel= stylesheet href= css/order.css / gt;
lt;/head gt;
lt; body gt;
lt; div id= main gt;
lt; div id= menu gt;
lt; div id= logo gt; lt;! - - gt; lt;/div gt;
lt; div id= link gt; lt; a href= index.php gt; lt;/a gt; lt;/div gt;
lt; div id= link gt; lt; a href= contacts.php gt; lt;/a gt; lt;/div gt;
lt; div id= active gt; lt; a href= order.php gt; lt;/a gt; lt;/div gt;
lt; div id= link gt; lt; a href= products.php gt; lt;/a gt; lt;/div gt;
lt; div id= link gt; lt;! - - gt; lt;/div gt;
lt;/div gt;
lt; div id= wrapper gt;
lt; h1 gt; lt;/h1 gt;
lt; br/ gt; lt; hr/ gt;
lt; div id= content gt;
lt;? php code/dbinit.php raquo ;;
$ phpself=$ _SERVER [ PHP_SELF ];
$ print_form=0; (@ $ _ POST) {
$ i=0;
$ query=mysql_query ( SELECT * FROM `order` ); (list ($ id)=mysql_fetch_row ($ query)) $ i ++;
$ programm=$ _POST [ addprogramm ];
$ name=$ _POST [ addname ];
$ surname=$ _POST [ addsurname ];
$ thname=$ _POST [ addthname ];
$ sex=$ _POST [ addsex ];
$ day=$ _POST [ addday ];
$ mounth=$ _POST [ addmounth ];
$ year=$ _POST [ addyear ];
$ email=$ _POST [ addemail ];
$ tel=$ _POST [ addtel ];
$ mobtel=$ _POST [ addmobtel ];
$ dohod=$ _POST [ adddohod ];
$ stazh=$ _POST [ addstazh ];
$ addday=date (j);
$ addmounth=date (n);
$ addyear=date (Y); ($ programm == 0 || $ name == || $ surname == || $ thname== || $ sex == 0 || $ day == 0 || $ mounth == 0 || $ year == 0 || $ mobtel== || $ dohod == || $ stazh == 0 ) {
echo ( lt; script gt; alert ( ); lt;/script gt; );
$ print_form=1;
} {
$ query= INSERT INTO `order` VALUES ( $ i raquo ;, $ programm raquo ;, $ name raquo ;, $ surname raquo ;, $ thname raquo ;, $ sex raquo ;, $ day raquo ;, $ mounth raquo ;, $ year raquo ;, $ email raquo ;, $ tel raquo ;, $ mobtel raquo ;, $ dohod raquo ;, $ stazh raquo ;, $ addday raquo ;, $ addmounth raquo ;, $ addyear raquo ;, 1 ) raquo ;; (mysql_query ($ query)) {( lt; script gt; alert ( raquo ;); lt;/script gt; );
$ print_form=1;
}
}
} {
$ print_form=1;
} ($ print_form == 1) {
? gt;
lt; form action= lt;?=$ phpself; ? gt; method= post name= order gt;
lt; table gt;
lt; tr gt;
lt; td gt; lt; span gt;
lt; td gt;
lt; select name= addprogramm size= 1 gt;
lt; option value= 0 gt; lt;/option gt;
lt; option value= 1 gt; lt;/option gt;
lt; option value= 2 gt; lt;/option gt;
lt; option value= 3 gt; lt;/option gt;
lt; option value= 4 gt; () Lt;/option gt;