home *** CD-ROM | disk | FTP | other *** search
/ Cool Page Magazine 16 / CoolPage_16.iso / dynadb / codes / updcust3.cfm < prev    next >
Text File  |  1998-02-04  |  4KB  |  143 lines

  1. <!-----------------------------└╔ªWíGModitpe3.cfm---------------------------------->
  2. <!--- ªb┤·╕╒¡n¡╫º∩¬║╕Ω«╞ª│¿Sª│┐∙╗~¬║«╔¡╘íA⌐╥Ñ╬¬║╡{ªí╜X⌐Míu╖s╝Wív¬║│íñ└½▄├■ªⁿíC    --->
  3. <!--- ñú╣Lªb┤·╕╒╜s╕╣¼Oº_¡½┬╨«╔íA┤Nª│┬Iñúñ@╝╦íC                    --->
  4. <!--- ½e│íñ└¼░┤·╕╒⌐╥┐ΘñJ¬║╕Ω«╞¼Oº_Ñ┐╜TíAªb│╠½ßñ~«e│\╕Ω«╞º≤╖s            --->
  5. <!--------------------------------------------------------------------------------->
  6.  
  7.  
  8.     <!--- ▒N┼▄╝╞▒╥⌐lñ╞  --->    <!------------------------------------------------->
  9.     <cfset iserror=false>        <!--- ªp¬Gª│Ñ⌠ª≤┐∙╗~íAiserror│ú╖|│]ª¿íutrueív    --->
  10.     <cfset dupidx=false>        <!--- ¿M⌐w┼U½╚╜s╕╣ª│¿Sª│¡½┬╨¬║┼▄╝╞        --->
  11.     <cfset id_long=false>        <!--- ¿M⌐w┼U½╚╜s╕╣ª│¿Sª│╣L¬°¬║┼▄╝╞        --->
  12.     <cfset family_long=false>    <!--- ¿M⌐w⌐mª│¿Sª│╣L¬°¬║┼▄╝╞            --->
  13.     <cfset given_long=false>    <!--- ¿M⌐wªWª│¿Sª│╣L¬°¬║┼▄╝╞            --->
  14.     <cfset address_long=false>    <!--- ¿M⌐wªaº}ª│¿Sª│╣L¬°¬║┼▄╝╞            --->
  15.     <cfset tel_wrong=false>        <!--- ¿M⌐w╣q╕▄ª│¿Sª│╣L¬°¬║┼▄╝╞            --->
  16.     <cfset fax_wrong=false>        <!--- ¿M⌐w╢╟»uª│¿Sª│╣L¬°¬║┼▄╝╞            --->
  17.     <cfset email_long=false>    <!--- ¿M⌐w╣q╢lª│¿Sª│╣L¬°¬║┼▄╝╞            --->
  18.     <cfset visa_wrong=false>    <!--- ¿M⌐w½HÑ╬Ñdª│¿Sª│╣L¬°¬║┼▄╝╞        --->
  19.     <cfset hkid_wrong=false>    <!--- ¿M⌐w¿¡ñ└├╥ª│¿Sª│╣L¬°¬║┼▄╝╞        --->
  20.                     <!------------------------------------------------->
  21.  
  22.     <cfif len(#cust_id#) greater than 10>
  23.         <cfset iserror=true>
  24.         <cfset id_long = true>
  25.     <cfelse>            
  26.         <cfset id_long =false>
  27.     </cfif>
  28.  
  29.     <cfif len(#hkid#) is not 8>
  30.         <cfset iserror=true>
  31.         <cfset hkid_wrong = true>
  32.     <cfelse>            
  33.         <cfset hkid_wrong =false>
  34.     </cfif>
  35.  
  36.     <cfif len(#given_name#) greater than 50>
  37.         <cfset iserror=true>
  38.         <cfset given_long = true>
  39.     <cfelse>            
  40.         <cfset given_long =false>
  41.     </cfif>
  42.  
  43.     <cfif len(#family_name#) greater than 50>
  44.         <cfset iserror=true>
  45.         <cfset family_long = true>
  46.     <cfelse>            
  47.         <cfset family_long =false>
  48.     </cfif>
  49.  
  50.     <cfif len(#address#) greater than 50>
  51.         <cfset iserror=true>
  52.         <cfset address_long= true>
  53.     <cfelse>            
  54.         <cfset address_long=false>
  55.     </cfif>
  56.  
  57.     <cfif len(#tel#) is not 8>
  58.         <cfset iserror=true>
  59.         <cfset tel_wrong = true>
  60.     <cfelse>            
  61.         <cfset tel_wrong =false>
  62.     </cfif>
  63.  
  64.     <cfif len(#fax#) is not 8>
  65.         <cfset iserror=true>
  66.         <cfset fax_wrong = true>
  67.     <cfelse>            
  68.         <cfset fax_wrong =false>
  69.     </cfif>
  70.  
  71.     <cfif len(#email#) greater than 50>
  72.         <cfset iserror=true>
  73.         <cfset email_long = true>
  74.     <cfelse>            
  75.         <cfset email_long =false>
  76.     </cfif>
  77.  
  78.     <cfif len(#visa#) is not 16>
  79.         <cfset iserror=true>
  80.         <cfset visa_wrong = true>
  81.     <cfelse>            
  82.         <cfset visa_wrong =false>
  83.     </cfif>
  84.  
  85.  
  86.  
  87.     <cfif iserror>
  88.  
  89.         ┐ΘñJñúÑ┐╜TíCºAÑ╟ñFÑHñU┐∙╗~íG<br>
  90.  
  91.         <cfif id_long>
  92.             ║╪├■╜s╕╣ñ╙¬°íC╜╨ñ┼┐ΘñJ╢W╣L 10 ¡╙ªrª∞¬║╜s╕╣íC<br>
  93.         </cfif>
  94.  
  95.         <cfif hkid_wrong>
  96.             ¿¡ñ└├╥╕╣╜Xª│╗~íC╜╨┐ΘñJ 8 ¡╙ªrª∞¬║¿¡ñ└├╥╕╣╜XíC<br>
  97.         </cfif>        
  98.  
  99.         <cfif given_long>
  100.             ªWñ╙¬°íC╜╨ñ┼┐ΘñJ╢W╣L 50 ¡╙ªrª∞¬║ªWíC<br>
  101.         </cfif>        
  102.  
  103.         <cfif family_long>
  104.             ⌐mñ╙¬°íC╜╨ñ┼┐ΘñJ╢W╣L 50 ¡╙ªrª∞¬║⌐míC<br>
  105.         </cfif>        
  106.  
  107.         <cfif address_long>
  108.             ªaº}ñ╙¬°íC╜╨ñ┼┐ΘñJ╢W╣L 50 ¡╙ªrª∞¬║ªaº}íC<br>
  109.         </cfif>        
  110.  
  111.         <cfif tel_wrong>
  112.             ╣q╕▄ª│╗~íC╜╨┐ΘñJ 8 ¡╙ªrª∞¬║╣q╕▄╕╣╜XíC<br>
  113.         </cfif>        
  114.  
  115.         <cfif fax_wrong>
  116.             ╢╟»uª│╗~íC╜╨┐ΘñJ 8 ¡╙ªrª∞¬║╢╟╣q╕╣╜XíC<br>
  117.         </cfif>        
  118.  
  119.         <cfif email_long>
  120.             ╣q╢lñ╙¬°íC╜╨ñ┼┐ΘñJ╢W╣L 50 ¡╙ªrª∞¬║╣q╢lªaº}íC<br>
  121.         </cfif>        
  122.  
  123.         <cfif visa_wrong>
  124.             ½HÑ╬Ñd╕╣╜X¬°½╫ª│╗~íC╜╨┐ΘñJ 16 ¡╙ªrª∞¬║½HÑ╬Ñd╕╣╜XíC<br>
  125.         </cfif>        
  126.  
  127.         <cfif dupidx>
  128.             ║╪├■╜s╕╣⌐╬ªW║┘¡½╜╞<br>
  129.         </cfif>
  130.     <cfelse>
  131.  
  132.         <!---    ªp¬G│q╣LñF⌐╥ª│¬║┤·╕╒íA┤N╖|¿╙¿∞│oñ@│íñ└    --->
  133.         <CFUPDATE DATASOURCE="Dynamic Database" TABLENAME="customer">
  134.  
  135.         <HTML>
  136.         <HEAD><TITLE>╕Ω«╞ñw╕gº≤╖s</TITLE></HEAD>
  137.         <BODY background="paper12l.jpg">
  138.         <CENTER><H2>ºA¡Φñ~⌐╥┐ΘñJ¬║╕Ω«╞ñwº≤╖sª▄╝╞╛┌«wññ</H2></CENTER>
  139.         <HR>
  140.         <P ALIGN="center"><A HREF="/dynadb/index.htm">ª^¿∞ÑD¡╢</A></P>
  141.         </BODY>
  142.         </HTML>    
  143.     </cfif>