my sites work perfectly except when I add either an Application.cfm or Application.cfc
when I add either of these two files, SOME of my css stops working.
the only thing I added to the Applicaton was the dsn name for the database. even tried it with a blank Applicaion file, still messed up...
Nevermind, I figured it out
not sure if this is best practise or not but here it is
<?php
$val = $_GET['page'];
if ($val=="home")
include("components/home.html");
elseif ($val=="about")
include("components/about.html"); etc.
Im new to Tek-Tips and I've searched all day to make something very simple work but just cant seem to get it.
I need to set a default variable in case one is not supplied in the url. In coldfusion I could set it as <cfparam name="url.page" default="home">
than I need to have a if/else...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.