I am looking to create a slightly different nav for each section on my site. I need PHP to look at the URL and see if the Folder is /AboutUs/ or /Services/ or whatever...
I have it working in ASP. How do I do it in PHP?
<%
vURL = mid(Request.ServerVariables("PATH_INFO"),2,999)
vSlashPlace = Instr(1, vURL, "/")
if vSlashPlace>0 then vURL = left(vURL, vSlashPlace-1)
if vURL = "Home" then
%>
HTML code goes here
<%
elseif vURL = "AboutUs" then
%>
HTML code goes here
<%
elseif vURL = "Services" then
%>
HTML code goes here
<%
elseif vURL = "ContactUs" then
%>
HTML code goes here
<%
else
%>
HTML code goes here
<%
End if
%>
I have it working in ASP. How do I do it in PHP?
<%
vURL = mid(Request.ServerVariables("PATH_INFO"),2,999)
vSlashPlace = Instr(1, vURL, "/")
if vSlashPlace>0 then vURL = left(vURL, vSlashPlace-1)
if vURL = "Home" then
%>
HTML code goes here
<%
elseif vURL = "AboutUs" then
%>
HTML code goes here
<%
elseif vURL = "Services" then
%>
HTML code goes here
<%
elseif vURL = "ContactUs" then
%>
HTML code goes here
<%
else
%>
HTML code goes here
<%
End if
%>