- Joined
- Mar 22, 2008
- Messages
- 297
- Reaction score
- 0
Firstly i'm gonna explain the hole situation: I wan't my HOLE site in just one page, and i know how to do that
This is how my wepage coding looks like:
and this is the adress: hazzan.110mb.com
I want the $_GET called "start" to show up FIRST when ppl goes to my homepage, but now it shows nothing in the body.
PHP:
<a href="?photoshop">Photoshop</a>
<a href="?scripts">Scripts</a>
<?php
if(isset($_GET['photoshop'])) {
echo "This is the Photoshop page!
";
}
if(isset($_GET['scripts'])) {
echo "
This is the scripts page!
";
}
?>
This is how my wepage coding looks like:
PHP:
<html>
<head>
<link href="default.css" type="text/css" rel="stylesheet" />
<title>Selaku.com - Hazzan's portfolio.</title>
</head>
<body spellcheck="false">
<div class="main">
<div class="gfx">
<h1>Selaku.com</h1>
</div>
<div class="menu"><a href="?photoshop"><span>Photoshop</span></a> <a href="?scripts"><span>Scripts</span></a></div>
<?php
if(isset($_GET['start'])) {
echo "<div class=content>
<div class=item><h1>Welcome</h1><br>
Hey and welcome to my personal portfolio were i post, well kinda everything useful, so enjoy! :)
</div></div>
";
}
if(isset($_GET['photoshop'])) {
echo "<div class=content>
<div class=item><h1>Photoshop</h1>
This is the Photoshop page!
</div></div>
";
}
if(isset($_GET['scripts'])) {
echo "
<div class=content>
<div class=item><h1>Scripts</h1><br>
This is the scripts page!
</div></div>
";
}
?>
<div class="footer">© 2006 <a href="index.html">Sitename.com</a>. Design by <a href="http://arcsin.se">Arcsin</a></div>
</div>
</body>
</html>
and this is the adress: hazzan.110mb.com
I want the $_GET called "start" to show up FIRST when ppl goes to my homepage, but now it shows nothing in the body.