Skip to content

Instantly share code, notes, and snippets.

@NickMitin
Created April 27, 2016 19:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NickMitin/512b3d19b3dbd89e82ac913df278472f to your computer and use it in GitHub Desktop.
Save NickMitin/512b3d19b3dbd89e82ac913df278472f to your computer and use it in GitHub Desktop.
switch ($fldType[$i]) {
case 1: // Char
$result .= $fldNameTempl . "<br><input type='text' name='".$srchPatName."[" . $j . "]' size='50' maxlength='255' value='" . htmlspecialchars(stripcslashes($srchPatValues[$j]), ENT_QUOTES) . "'>" . $fld_suffix;
$j++;
break;
case 3: // Text
$result .= $fldNameTempl . "<br><input type='text' name='".$srchPatName."[" . $j . "]' size='50' maxlength='255' value='" . htmlspecialchars(stripcslashes($srchPatValues[$j]), ENT_QUOTES) . "'>" . $fld_suffix;
$j++;
break;
case 6: // File
$result .= $fldNameTempl . "<br><input type='text' name='".$srchPatName."[" . $j . "]' size='50' maxlength='255' value='" . htmlspecialchars(stripcslashes($srchPatValues[$j]), ENT_QUOTES) . "'>" . $fld_suffix;
$j++;
break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment