[FONT=Arial]I am new to php and starting on a web site over haul.

i want a php function like the .asp .... however, I cannot figure out the logistics??

Could someone please help!! 😕

Thanks so much. [/FONT]

this is the code i used for an asp site

<%
thisfile = request.querystring("file")

If thisfile = "" Then
' if blank, exec index/default page
Server.Execute("news.htm")

Else
' include passed in file
Server.Execute(thisfile)
End If
%>

    want a php function like the .asp .... however, I cannot figure out the logistics??

    ok i really dont know what your saying.

    but with my limited experience in ASP i think i can understand. (give me a break if im wrong 😉)

    if (!isset($_GET['file']) {
    require('news.htm');
    }else {
    require ($_GET['file']);
    }
    

    is this what you mean?

      Write a Reply...