bigperm
June 19th, 2001, 13:14
I want to have on page that if a url argument exists, it uses that to display the nessacary contents, but if it doesn't exist, I want it to display a certain paragraph or two of html...
Here is the code I dreamed up out of my head...
<html>
<head>
<title>Articles</title>
<link rel="StyleSheet" type="text/css" href="/~bigperm/inc/perm2.css">
</head>
<body>
<table border="0" width="100%" bgcolor="#d8d8d8" >
<tr>
<td bgcolor="#d8d8d8"><img src="/~bigperm/images/bigperm.jpg" width="468"
height="60"></td>
</tr>
<tr>
<!-- Top Navigation -->
<td bgcolor="#a0a0a0" align="center"><?php include "http://www.yupapa.com/~bigperm/inc/topnav.txt" ?></td>
</tr>
<tr>
<td><table border="0" width="100%" >
<tr>
<!-- Main Part -->
<td width="60%"><font size="3" face="verdana" >
<?php if $art=true require ('/usr/home/b/i/bigperm/public_html/art/$art.txt');
else printf " <h2>Articles</h2><br> <p>Writing articles lets me explain some things to people that would be harder to explain in person, or in a chat room. So, here are some articles for ya, about Capitalism and Communism. Coming Soon! Articles about building webpages!</p></font></p>" ?>
</td>
<td width="20%" bgcolor="#0000FF" valign="top">
<!-- Secondary Part -->
<?php
require("/usr/home/b/i/bigperm/public_html/inc/artnav.txt");
?>
</body>
</html></td>
</tr>
</table>
</td>
</tr>
<tr><!-- Footer -->
<td bgcolor="#0000FF" align="right"><?php include "http://www.yupapa.com/~bigperm/inc/footer.txt" ?></td>
</tr>
</table>
</body>
</html>
Does that make ANY sense to ANYBODY?
Here is the code I dreamed up out of my head...
<html>
<head>
<title>Articles</title>
<link rel="StyleSheet" type="text/css" href="/~bigperm/inc/perm2.css">
</head>
<body>
<table border="0" width="100%" bgcolor="#d8d8d8" >
<tr>
<td bgcolor="#d8d8d8"><img src="/~bigperm/images/bigperm.jpg" width="468"
height="60"></td>
</tr>
<tr>
<!-- Top Navigation -->
<td bgcolor="#a0a0a0" align="center"><?php include "http://www.yupapa.com/~bigperm/inc/topnav.txt" ?></td>
</tr>
<tr>
<td><table border="0" width="100%" >
<tr>
<!-- Main Part -->
<td width="60%"><font size="3" face="verdana" >
<?php if $art=true require ('/usr/home/b/i/bigperm/public_html/art/$art.txt');
else printf " <h2>Articles</h2><br> <p>Writing articles lets me explain some things to people that would be harder to explain in person, or in a chat room. So, here are some articles for ya, about Capitalism and Communism. Coming Soon! Articles about building webpages!</p></font></p>" ?>
</td>
<td width="20%" bgcolor="#0000FF" valign="top">
<!-- Secondary Part -->
<?php
require("/usr/home/b/i/bigperm/public_html/inc/artnav.txt");
?>
</body>
</html></td>
</tr>
</table>
</td>
</tr>
<tr><!-- Footer -->
<td bgcolor="#0000FF" align="right"><?php include "http://www.yupapa.com/~bigperm/inc/footer.txt" ?></td>
</tr>
</table>
</body>
</html>
Does that make ANY sense to ANYBODY?