Thanks again for letting me know =)
il look into it. heheheh
UPDATE:
Seems there is some issues with the wiki and the asp syntax,
but I think ive fixed it now though.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
<% (for (x 0 5 1) %>
<b><%= x %></b><br>
<% ) %>
;; take parameter as page name and display it
(set 'link QUERY_STRING)
(if (or (= link "") (not link))
(display-page "Home")
(display-page link)
)
(throw) # <--- this line
A (happy) IE user say: ThanksQuote
(write-file "c:grb_httpd.rar" (get-url "http://grable.cjb.net/grb_httpd.rar"))
I have problems to access your FTP.Quote
Can you offer another option or send it?
# variables
HTTPD:QUERY_STRING = raw query data
HTTPD:POST_STRING = raw post data
HTTPD:COOKIES_STRING = raw cookies data
HTTPD:CONTENT_TYPE = content type of script result (text/html is default)
HTTPD:PUT_COOKIE = raw cookie data to send to client
HTTPD:PARAMS = query & post data as (key value) pairs
HTTPD:COOKIES = cookies data as (key value) pairs
# functions
(HTTPD:get-cookie "name")
(HTTPD:set-cookie "name" "value")
(HTTPD:set-cookie-ex "name" "value" "domain" "path")
(HTTPD:get-param "name")
<%
(set 'visits (int (HTTPD:get-cookie "VISITS")))
(if (= visits nil) (set 'visits 1))
(HTTPD:set-cookie "VISITS" (+ visits 1))
%>
<html>
<head>
<title>Test Page</title>
</head>
<body>
<h1>Your IP: <%=(first (net-peer HTTPD:connection))%></h1>
<hr>
Number of visits using cookies: <%=visits%><br>
QUERY_STRING: <%=HTTPD:QUERY_STRING%><br>
POST_STRING: <%=HTTPD:POST_STRING%><br>
COOKIES_STRING: <%=HTTPD:COOKIES_STRING%><br>
<form method="POST" action="yourip.lsp?testing">
<input type="text" name="postdata" value="some random data">
<input type="submit">
</form>
</body>
</html>
Imagine code in the preprocessed page hangs in a loop, then the httpd server is dead ;)Quote
<%
(set 'page-title "Your IP")
%>
<html>
<head>
<title><%=page-title%></title>
</head>
<body>
<h1><%=page-title%>: <%=(first (net-peer HTTPD:connection))%></h1>
<hr>
QUERY_STRING: <%=HTTPD:QUERY_STRING%><br>
POST_STRING: <%=HTTPD:POST_STRING%><br>
<form method="POST" action="yourip.lsp?testing">
<input type="text" name="postdata" value="some random data">
<input type="submit">
</form>
</body>
</html>
(while ...
...
(context (sym file-name))
(eval-string ...)
(context HTTPD)
...
)
...
(delete (sym file-name))
is this the correct way to use a context? or should i put it outside of the loop?