Skip to content

Instantly share code, notes, and snippets.

@NickMitin
Last active July 6, 2016 10:29
Show Gist options
  • Save NickMitin/b65c523b63d712e1ac1dc3210377d2da to your computer and use it in GitHub Desktop.
Save NickMitin/b65c523b63d712e1ac1dc3210377d2da to your computer and use it in GitHub Desktop.
$stringValue = htmlspecialchars(stripcslashes($srchPatValues[$j]), ENT_QUOTES);
$stringValue = addcslashes($stringValue, '$');
switch ($fldType[$i]) {
case 1: // Char
$result .= $fldNameTempl . "<br><input type='text' name='".$srchPatName."[" . $j . "]' size='50' maxlength='255' value='" . $stringValue . "'>" . $fld_suffix;
$j++;
break;
case 3: // Text
$result .= $fldNameTempl . "<br><input type='text' name='".$srchPatName."[" . $j . "]' size='50' maxlength='255' value='" . $stringValue . "'>" . $fld_suffix;
$j++;
break;
case 6: // File
$result .= $fldNameTempl . "<br><input type='text' name='".$srchPatName."[" . $j . "]' size='50' maxlength='255' value='" . $stringValue . "'>" . $fld_suffix;
$j++;
break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment