308holes
February 21st, 2002, 10:56
im trying to get this asp scritp from brainjar.com to php because my server is linux and only supports php and cgi can some one conver this into php for me please??? ill add thanks or like to you site for your help
<% 'Set scheme cookie.
Response.Buffer = true
if Request.QueryString("scheme") <> "" then
Response.Cookies("scheme") = Request.QueryString("scheme")
Response.Cookies("scheme").Expires = _
FormatDateTime(DateAdd("d", 60, Now()))
else
Response.Cookies("scheme").Expires = _
FormatDateTime(DateAdd("d", -1, Now()))
end if
'Send back to referring page.
Response.Redirect(Request.ServerVariables("HTTP_REFERER")) %>
[Include Style Sheet[
<link href="/common/main.css" rel="stylesheet" type="text/css">
<% if Request.Cookies("scheme") <> "" then %>
<link href="/common//main.css"
rel="stylesheet" type="text/css">
<% end if %>
[/Include Style Sheet]
Please thank for your help
<% 'Set scheme cookie.
Response.Buffer = true
if Request.QueryString("scheme") <> "" then
Response.Cookies("scheme") = Request.QueryString("scheme")
Response.Cookies("scheme").Expires = _
FormatDateTime(DateAdd("d", 60, Now()))
else
Response.Cookies("scheme").Expires = _
FormatDateTime(DateAdd("d", -1, Now()))
end if
'Send back to referring page.
Response.Redirect(Request.ServerVariables("HTTP_REFERER")) %>
[Include Style Sheet[
<link href="/common/main.css" rel="stylesheet" type="text/css">
<% if Request.Cookies("scheme") <> "" then %>
<link href="/common//main.css"
rel="stylesheet" type="text/css">
<% end if %>
[/Include Style Sheet]
Please thank for your help