Re: PHP problem

by Reywob(at)aol.com

 Date:  Wed, 5 Apr 2000 14:52:42 EDT
 To:  hwg-languages(at)hwg.org
  todo: View Thread, Original
Thanks to all of you who replied.  It's working now!  And it was interesting 
to see the different ways different people coded it - is there any advantage 
to putting:

<?php
        if (!isset($css)):
        echo ("http://members.aol.com/reywob/newstyle.css");
        else:
        echo ("$css");
        endif;
        ?>" type="text/css">

rather than:

<?

  if($css == ""){
    echo "http://members.aol.com/reywob/newstyle.css";
  }
  else{
   echo "$css";
  }

?>

Or is it just personal choice?

Now for another question...
I wanted to do the above because I run a message board and postcard generator 
and wanted similar sites to be able to link to them.  However, instead of a 
link to a message board that doesn't look like part of their site, I wanted 
them to be able to apply their stylesheet to it.  Still with me???  What 
would be the best way to do it?  The above would work for a single page 
message board, but I cant think how to get it to work using Phorum.  With the 
postcard generator the above would work because you can just pass $css as 
another hidden variable.  Any ideas?

Thanks for all your help.
Peter.

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA