Guest User

Untitled

a guest
Sep 18th, 2018
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.74 KB | None | 0 0
  1. codeignitor form validation error
  2. $this->form_validation->set_rules("contact_name[]","Contact Name","required|max_length[25]|xss_clean|htmlspecialchars");
  3. $this->form_validation->set_rules("contact_title[]","Contact Title","required|max_length[25]|xss_clean|htmlspecialchars");
  4. $this->form_validation->set_rules("contact_main[]","Contact Main Number","required|max_length[45]|xss_clean|htmlspecialchars");
  5. $this->form_validation->set_rules("contact_direct[]","Contact Direct Number","required|max_length[45]|xss_clean|htmlspecialchars");
  6. $this->form_validation->set_rules("contact_cell[]","Contact Cell Number","required|max_length[45]|xss_clean|htmlspecialchars");
  7. $this->form_validation->set_rules("contact_primary","Primary","required|max_length[45]|xss_clean|htmlspecialchars");
  8. $this->form_validation->set_rules("contact_fax[]","Fax","required|max_length[105]|xss_clean|htmlspecialchars");
  9. $this->form_validation->set_rules("contact_email[]","Contact Email ID","required|max_length[105]|xss_clean|htmlspecialchars");
  10.  
  11. <input type="text" name="contact_name[]" value="Dileep" class="t_contact_name">
  12. //and some others too as name as array
  13.  
  14. array
  15. 'company' => string 'Sccc' (length=4)
  16. 'name' => string 'Ajay ccc' (length=8)
  17. 'address' => string 'ccsd' (length=4)
  18. 'city' => string 'City name' (length=9)
  19. 'state' => string '20' (length=2)
  20. 'zip' => string '665996555' (length=9)
  21. 'country' => string '6' (length=1)
  22. 'category' => string 'popular' (length=7)
  23. 'credit' => string '2566' (length=4)
  24. 'website' => string 'ccc' (length=3)
  25. 'primary_flag' => string '1' (length=1)
  26. 'discount' => string '0' (length=1)
  27. 'payment_terms' => string '6' (length=1)
  28. 'customerid' => string 'ccc' (length=3)
  29. 'notes' => string 'cc' (length=2)
  30. 'contact_name' =>
  31. array
  32. 0 => string 'Dileep' (length=6)
  33. 1 => string 'Dileep' (length=6)
  34. 2 => string 'Dileep' (length=6)
  35. 3 => string 'Dileep' (length=6)
  36. 4 => string 'Dileep' (length=6)
  37. 5 => string 'Dileep' (length=6)
  38. 6 => string 'Dileep' (length=6)
  39. 7 => string 'Dileep' (length=6)
  40. 8 => string 'Dileep' (length=6)
  41. 'contact_primary' =>
  42. array
  43. 0 => string 'true' (length=4)
  44. 1 => string 'false' (length=5)
  45. 2 => string 'false' (length=5)
  46. 3 => string 'false' (length=5)
  47. 4 => string 'false' (length=5)
  48. 5 => string 'false' (length=5)
  49. 6 => string 'false' (length=5)
  50. 7 => string 'false' (length=5)
  51. 8 => string 'false' (length=5)
  52. 'contact_title' =>
  53. array
  54. 0 => string 'Curio' (length=5)
  55. 1 => string 'Curio' (length=5)
  56. 2 => string 'Curio' (length=5)
  57. 3 => string 'Curio' (length=5)
  58. 4 => string 'Curio' (length=5)
  59. 5 => string 'Curio' (length=5)
  60. 6 => string 'Curio' (length=5)
  61. 7 => string 'Curio' (length=5)
  62. 8 => string 'Curio' (length=5)
  63. 'contact_main' =>
  64. array
  65. 0 => string '66558-66554-6665' (length=16)
  66. 1 => string '66558-66554-6665' (length=16)
  67. 2 => string '66558-66554-6665' (length=16)
  68. 3 => string '66558-66554-6665' (length=16)
  69. 4 => string '66558-66554-6665' (length=16)
  70. 5 => string '66558-66554-6665' (length=16)
  71. 6 => string '66558-66554-6665' (length=16)
  72. 7 => string '66558-66554-6665' (length=16)
  73. 8 => string '66558-66554-6665' (length=16)
  74. 'contact_direct' =>
  75. array
  76. 0 => string '5555-666-555' (length=12)
  77. 1 => string '5555-666-555' (length=12)
  78. 2 => string '5555-666-555' (length=12)
  79. 3 => string '5555-666-555' (length=12)
  80. 4 => string '5555-666-555' (length=12)
  81. 5 => string '5555-666-555' (length=12)
  82. 6 => string '5555-666-555' (length=12)
  83. 7 => string '5555-666-555' (length=12)
  84. 8 => string '5555-666-555' (length=12)
  85. 'contact_cell' =>
  86. array
  87. 0 => string '555-6654-555' (length=12)
  88. 1 => string '555-6654-555' (length=12)
  89. 2 => string '555-6654-555' (length=12)
  90. 3 => string '555-6654-555' (length=12)
  91. 4 => string '555-6654-555' (length=12)
  92. 5 => string '555-6654-555' (length=12)
  93. 6 => string '555-6654-555' (length=12)
  94. 7 => string '555-6654-555' (length=12)
  95. 8 => string '555-6654-555' (length=12)
  96. 'contact_fax' =>
  97. array
  98. 0 => string '996-5565-656' (length=12)
  99. 1 => string '996-5565-656' (length=12)
  100. 2 => string '996-5565-656' (length=12)
  101. 3 => string '996-5565-656' (length=12)
  102. 4 => string '996-5565-656' (length=12)
  103. 5 => string '996-5565-656' (length=12)
  104. 6 => string '996-5565-656' (length=12)
  105. 7 => string '996-5565-656' (length=12)
  106. 8 => string '996-5565-656' (length=12)
  107. 'contact_email' =>
  108. array
  109. 0 => string 'mailer@mail.com' (length=20)
  110. 1 => string 'mailer@mail.com' (length=20)
  111. 2 => string 'mailer@mail.com' (length=20)
  112. 3 => string 'mailer@mail.com' (length=20)
  113. 4 => string 'mailer@mail.com' (length=20)
  114. 5 => string 'mailer@mail.com' (length=20)
  115. 6 => string 'mailer@mail.com' (length=20)
  116. 7 => string 'mailer@mail.com' (length=20)
  117. 8 => string 'mailer@mail.com' (length=20)
  118. 'userfile2' => string '' (length=0)
  119. 'contact_log' =>
  120. array
  121. 0 => string 'Waiting for the release....' (length=27)
  122. 'contact_time' =>
  123. array
  124. 0 => string '6/30/12' (length=7)
  125. 'contact_duedate' =>
  126. array
  127. 0 => string '12/01/2012' (length=10)
  128.  
  129. A PHP Error was encountered
  130.  
  131. Severity: Warning
  132.  
  133. Message: mb_strlen() expects parameter 1 to be string, array given
  134.  
  135. Filename: libraries/Form_validation.php
  136.  
  137. Line Number: 1003
  138. A PHP Error was encountered
  139.  
  140. Severity: Warning
  141.  
  142. Message: htmlspecialchars() expects parameter 1 to be string, array given
  143.  
  144. Filename: libraries/Form_validation.php
  145.  
  146. Line Number: 619
  147.  
  148. <input type="text" name="contact_name" value="Dileep" class="t_contact_name">
Add Comment
Please, Sign In to add comment