การคัดลอกรหัสมีดังนี้:
-
Response.write "คำหลัก :(" & trim (คำขอ ("q")) & ")" & "<hr>"
x = แทนที่ (trim (คำขอ ("q")), "", ",", ")
'x = อาร์เรย์ (x)
t = แยก (x, ",")
sql = "เลือก*fromtbwherekis <> 0"
fori = 0toubound (t)
ift (i) <> "" แล้ว
Response.write "Things" & i+1 & ":" & t (i) & "<hr>"
sql = sql & "ortitlelike '" & t (i) & "' '' นี่คือคีย์
endif
ต่อไป
Response.writesql
-
<formaction = "">
<table>
<tr>
<td> <inputName = "q" onkeyup = "this.value = this.value.replace (// s+/g, '')"> <putType = "submit" value = "ตรวจสอบ
สอบถาม "> </td>
</tr>
</table>
</form>