Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.92 KB | None | 0 0
  1. The maxlength was 10 for char name and 20 for guild name, i changed them to 30, for some reason on my site its still using the 10:20 value, i checked the source and its putting the old value? how come its doing this? Below is what the source is telling me, below that is the php file for what im doing.
  2.  
  3. <td class='tbl'>Main Character Name::</td>
  4. <td class='tbl'><input type='text' name='user_character_name1' value='' maxlength='10' class='textbox' style='width:200px;' /></td>
  5. </tr>
  6. <tr>
  7. <td class='tbl'>Main Character Corporation::</td>
  8. <td class='tbl'><input type='text' name='user_character_guild1' value='' maxlength='20' class='textbox' style='width:200px;' ....
  9.  
  10.  
  11. Below is what im uploading
  12.  
  13.  
  14. if ($profile_method == "input") {  
  15.     $char = "";
  16.     if ($user_data['user_character']) {
  17.         $character_info = unserialize($user_data['user_character']);
  18.     }
  19.     for ($char = 1; $char <= 4; $char++) {
  20.         if (isset($char) && $char == "1") {
  21.             $character_title = $locale['uf_char01']." ".$locale['uf_char08'];
  22.             $guild = 1;
  23.         } else {
  24.             $character_title = $locale['uf_char02']." ".$locale['uf_char08']." ".($char-1);
  25.             $guild = 1;
  26.         }
  27.         echo "<tr>\n";
  28.         echo "<td class='tbl'>".$character_title." ".$locale['uf_char03'].":</td>\n";
  29.         echo "<td class='tbl'><input type='text' name='user_character_name".$char."' value='".(isset($character_info['user_character_name'.$char]) ? $character_info['user_character_name'.$char] : "")."' maxlength='30' class='textbox' style='width:200px;' /></td>\n";
  30.         echo "</tr>\n";
  31.         if (isset($guild) && $guild == "1") {
  32.             echo "<tr>\n";
  33.             echo "<td class='tbl'>".$character_title." ".$locale['uf_char07'].":</td>\n";
  34.             echo "<td class='tbl'><input type='text' name='user_character_guild".$char."' value='".(isset($character_info['user_character_guild'.$char]) ? $character_info['user_character_guild'.$char] : "")."' maxlength='30' class='textbox' style='width:200px;' /></td>\n";
  35.             echo "</tr>\n";
  36.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement