기본 콘텐츠로 건너뛰기

라벨이 classic asp인 게시물 표시

[Classic ASP] Show all Get/POST Requests, Cookies, Sessions.. 모든 리퀘스트, 쿠키, 세션값 표시

For each LWRF in Request.Form     Response.write LWRF & ": " & Request.Form(LWRF) & "<br>" Next 응용을 하면..  Get 방식으로 넘어온 것을 보려면 For each LWRQ in Request.QueryString     Response.write LWRQ & ": " & Request(LWRQ) & "<br>" Next 현재 페이지의 쿠키값들을 보려면 For each LWRC in Request. Cookie s     Response.write LWRC & ": " & Request. Cookie s(LWRC) & "<br>" Next 현재 페이지의 세션값들을 보려면 For each lwSC in Session.Contents     Response.write lwSC & ": " & Session(lwSC) & "<br>" Next 이전 폼에서 받은 값들을 그대로 다음 페이지로 넘기려고 할때는 <form>태그 안에 다음처럼 넣어주면 됩니다. <form> <% For each LWRF in Request.Form     Response.write "<input type=""hidden"" name=""" & LWRF & """ values=""" & Request.Form(LWRF) & """>" & vbCRLF Next %> </form> Free Infrastr

[Classic ASP] get line from finding keyword to line feed (찾는 단어부터 줄 끝까지 검색해서 가져오기)

function lwGetStrToLF(rst, fk) pos = instr(rst, fk) if pos > 0 then pos2 = instr(pos + 1, rst, vbLF) 'response.Write("pos2:" & pos2 & "<BR>" & vbCRLF) if pos2 > 0 then 'response.Write("startpoint:" & pos + len(fk) & "<BR>" & vbCRLF) 'response.Write("wordlength:" & pos2 - pos & "<BR>" & vbCRLF) fval = mid(rst, pos + len(fk), pos2 - pos - len(fk)) 'response.Write("rkkw:" & rkkw & "<BR>" & vbCRLF) fval = replace(fval, " ", "") fval = replace(fval, " ", "") end if end if lwGetStrToLF = fval end function 클라우드/레거시 시스템의 통합 관리 및 자동화 Global Infrastructure Information Platform http://giip.littleworld.net 모든 데이터는 링크로 관리가 된다.!!  Share your link !! :: Linkbook Service http://link.littleworld.net