Hey so I have been wondering. If I obtained the skin for the website me and my friends are making, how would you recommend we layout the page?
By this I mean, my friend suggests we use tables and my other friend suggests we use frames. However, from what I have acquired from SEN it includes neither frames and minimal tables. How would I make the site know what graphics to load and where? IP mentioned using "wrappers" which I kind of understood but would like further in-depth explanation of how to use a wrapper.
My general concern is making a clean layout with everything where I want it, and not extending beyond the boundaries I want it within.
Absolutely any suggestions on how to do this layout?
SEN is loaded with tables, and as far as I'm concerned tables are your best friend
Frames on the other hand is the swear word of web development. From what i can tell there are several reasons why not to layout your page using them.
Most commonly it is mentioned that frames do not work well with browsers. You can't bookmark frame layouts and it many times messes up the back and forward options in the browser.
Anyways I would suggest using tables and you can mimic frame activity using the url variables and includes. I just did this with my site and i'm quite proud of the outcome.
Anyways on with my question..
Question 3I don't know what the name of the variables you use $_GET is but I've been calling them URL variables lol. Anyways I'm curious if there is a better way to work with multiple variables when linking.
Say for an example I am currently at 'main.php?view=1' and I want to use an independent variable unrelated to view. Maybe my desired result is to go to 'main.php?view=1&action=3'.
Is there a simple way to append '&action=3' to the current url or should I use additional code to get the current url and add it to it?
I guess it is just a few easy steps but I'm curious if it gets easier or is the best way something like..
"currenturl" + "&action=3"
And then of course if 'action=3 is already in the url I don't want to add another..\
hope that makes since...
Shocko here is a sample of a test page I made. view is more likely a more suitable variable name than action.
<?php
$action =$_GET['action'];
?>
<html>
<head>
<title>Frame Test</title>
</head>
<body>
<table border=1 cellspacing=0 cellpadding=0 align=center width=90%>
<tr>
<td><!-- ** Cell 1 ** -->
<b>Navagation</b>
</td>
<td><!-- ** Cell 2 ** -->
<a href="?action=1">javascript1</a> |
<a href="?action=2">javascript2</a> |
<a href="?action=3">javascript3</a> |
<a href="?action=4">javascript4</a>
</td>
</tr><tr>
<td colspan=2><!-- ** Cell 3 ** -->
<?php
if($action == 1)
require 'javascript1.html';
if($action == 2)
require 'javascript2.html';
if($action == 3)
require 'javascript3.html';
if($action == 4)
require 'javascript4.html';
?>
</td></tr>
</table>
</body>
</html>
Post has been edited 2 time(s), last time on Mar 14 2008, 8:52 am by BoltHead.
None.