Welcome to WebmasterWorld Guest from 22.214.171.124
I use 'include' to include pages in a script depending on what the URL is.
How do I do it?
Or just include the line in the html section of your php file.
Now in the rest of your html you can reference the functions in utils.js.
Do you mean:
I don't have any HTML-section in this file. The file is just for redirecting.
if (page == 'page1' && id == '23')
Your doing redirects.
Use php to build a redirect header.
print "Location: 301 [example.com...]
Or write print an html redirect.
<meta http-equiv="Refresh" content="0;url=http://www.example.com/page.html?id=id">
<a href='http://www.example.com/'>Moved here</a> </body>
Or you could use mod_rewrite to do similar things... do a site search for mod_rewrite here and you will masses of uses that you can put it to.
[somurl?id=5...] will include somefile5.incl, with on id (or id=0) will include somefile1.incl