Search
Left Quote    Maybe this world is another planet's Hell.
- Aldous Huxley    
Right Quote
 
[login] | [Register]
Forum Index » PHP and mySQL » Viewing Topic and Replies
Post Reply


        Viewing Topic: Website page problem
  This user is offline  solphate
  Subject: "Website page problem" Posted: @ 8:59 pm on May 20 2008   
Member #: 581
Rank: User - (24)
Since: 02/18/08
Posts: 24

I did have a post from earlier about something like, but please reply to this post with in 2 hours of this post.

Ok my problem is that i want to use tables in my website to hold the navigation bar login for etc. but when you click on a link to login or register it just reloads the home page and changes the part of the table the holds the navbar into the register page.

If you don't know what i mean click Here to view what i have done on the home page. this not like my old website where i wanted to put the user system in after the website is done i have a site that got me a good user system but i want to know how to make my links target _self, and if you think it just


Code:
target="_ self"



It's not i tried it and it doesn't work. the navbar uses the switch command so that i have links like

nameofsite.com/ index.php?actio n=games or something like that. basically like forum software have

heres my code for the index page don't worry about the other errors shown on the page i got the other guys helping me for that

index.php

Code:
<html> <head>
<title>Pl asma Steel Games | Home</title& gt;

</head> <body BGcolor="# 262626" text="#FFF FFF" LINK="#FF0 000" VLINK="#FF 0000" ALINK="#FF 0000">< br /> <table border="0& quot;>
<tr>
<td>

</td>
</tr>
<tr>
<td>
<div id="header " align="cen ter"> <object classid="c lsid:d27cdb6e-a e6d-11cf-96b8-4 44553540000&quo t; codebase=" http://download .macromedia.com /pub/shockwave/ cabs/flash/swfl ash.cab#version =8,0,0,0" width="100 0" height="20 2" id="LOGO_F " align="mid dle"> <param name="allo wScriptAccess&q uot; value="sam eDomain" />
<param name="allo wFullScreen&quo t; value="fal se" />
<param name="movi e" value="htt p://plasmasteel games.zxq.net/h eader/LOGO_F.sw f" /><param name="qual ity" value="hig h" /><param name="bgco lor" value="#00 0000" /> <embed src="http: //plasmasteelga mes.zxq.net/hea der/LOGO_F.swf& quot; quality="h igh" bgcolor="# 000000" width="100 0" height="20 2" name="LOGO _F" align="mid dle" allowScriptAcce ss="sameDo main" allowFullScreen ="false&qu ot; type="appl ication/x-shock wave-flash" ; pluginspage=&qu ot;http://www.m acromedia.com/g o/getflashplaye r" />
</object> ;
<br>
</div>
</td>
</tr>
</table>< br /> <table border="1& quot;>
<tr>
<td>
<div align="lef t">
<b>Login& lt;/b>
<br>
<form method="po st" action="in dex.php?action= login">

<b>Usern ame:</b>& lt;input type="text " name="user name">& lt;br />
<br>
<b>Passw ord:</b>& lt;input type="pass word" name="pass word">& lt;br />

<input type="subm it" name="logi n" value="Log in">
</form> </td>
</tr>
</table>< br /> <br>
<table border="1& quot; width="228 ">
<tr>
<td>

<?php
/*
iSuS - iScripting.net User System
v1.0 made by Panzer
http://www.iScr ipting.net
Copyright must stay intact
*/

// Get the configuration file
include ('config.php');

//Set the navigation up, secure it's input.
$nav = $_GET['action'] ;
secure($nav);
//Use a switch statement to go through the URLS.
switch($nav)

{
case "login&quo t;:
include('log in.php');
break;

case "logout&qu ot;:
include ('logout.php');
break;

case "editprofi le":
include ('editprofile.p hp');
break;

case "memberlis t":
include ('memberlist.ph p');
break;

case "register& quot;:
include ('register.php' );
break;




default:
echo "Welcome to $sitename $uName <br /><br />";
if($uId) {
echo "<b> Site Links</b> <br /><br />";
if($userCan['vi ewprofile'])
echo "<a href='$siteurl/ index.php?actio n=memberlist'&g t;View Memberlist</ a><br /><br /><br />";


echo "<b> User Links</b> <br />";

echo "<a href='$siteurl/ index.php?actio n=home'>Home </a><b r />";
echo "<a href='$siteurl/ index.php?actio n=downloads'> ;Downloads</ a><br />";
echo "<a href='$siteurl/ index.php?actio n=music'>Mus ic</a>< ;br />";
echo "<a href='$siteurl/ index.php?actio n=videos'>Vi deos</a>& lt;br />";
echo "<a href='$siteurl/ index.php?actio n=animations'&g t;Animations< ;/a><br />";
echo "<a href='$siteurl/ index.php?actio n=polls'>Pol ls</a>< ;br />";
echo "<a href='$siteurl/ index.php?actio n=contact'>C ontact Us</a>< ;br />";

echo "<a href='$siteurl/ index.php?actio n=logout'>Lo gout</a>& lt;br />";

if($userCan['ed itprofile'])
echo "<a href='$siteurl/ index.php?actio n=editprofile'& gt;Edit Profile</a&g t;<br />";
} else {

echo " <a href='$siteurl/ index.php?actio n=login'>Log in</a>< ;br />
<a href='$siteurl/ index.php?actio n=register'> Register</a& gt;<br /> ";

break;
}
}
?>

</td>
</tr>
</table>< br /> <br>
<table border="1& quot; width="228 ">
<tr>
<td>
<a href="http ://www.website- hit-counters.co m" target="_b lank">< br /> <img src="http: //www.website-h it-counters.com /cgi-bin/image. pl?URL=55882-16 47" alt="login page" border="0& quot; >
</a>
</td>
</tr>
<tr>
<td align="cen ter"> <font style="fon t-family: Geneva, Arial, Helvetica, sans-serif; font-size: 9px; color: #330006;
text-decoration : none;"> <a href="http ://www.website- hit-counters.co m" target="_b lank" style="fon t-family:
Geneva, Arial, Helvetica, sans-serif; font-size: 9px; color: #555556; text-decoration : none;"
title="fre e web page hit counter"&g t;free web page hit counter
</a>
</font> </td>
</tr>
</table>< br /> </body> </html>



It me it me
    Viewed: 12,574 Times | Reply to This | To top
  This user is offline  David1159
  Subject: "re: Website page problem" Posted: @ 7:42 am on May 22 2008    

Member #: 526
Rank: User - (81)
Since: 12/27/07
Posts: 81
From: usa

Sorry bro.

You are using a outside code, we do not know how it works. You have only showed us a small amount of coding, there is more to it that we do not know of.

It is like telling us about some novel that we have not read. And asking our opinion about that novel. We do not have the book to form a opinion.

You are only as secure/safe in your coding as the webmaster is(which is most likely you).




Coding is simply CST... Combining $hit Together. We make different $hit to run in unison correctly.

    Viewed: 12,550 Times | Reply to This | To top
  This user is offline  solphate
  Subject: "re: Website page problem" Posted: @ 9:54 pm on May 22 2008    
Member #: 581
Rank: User - (24)
Since: 02/18/08
Posts: 24

here's a link to download the script i'm using and if you wat all the pages of code that i have then just say so.

Downlaod Isus 1.0 now




It me it me

    Viewed: 12,534 Times | Reply to This | To top
  This user is offline  Vilice
  Subject: "re: Website page problem" Posted: @ 8:00 am on Jul 15 2008    
Member #: 718
Rank: User - (5)
Since: 07/14/08
Posts: 5

You should take your security into consideration




Hostmonster special promo Discount link $4.95/mth - Unlimited storage space, unlimited bandwidth transfer http://hostmons ter.co.in

    Viewed: 12,072 Times | Reply to This | To top
Viewing Page: 1 of 1


1 |

You must be logged in to post on the forums. Login or Register








"AllSyntax.com" Copyright © 2002-2018; All rights lefted, all lefts righted.
Privacy Policy  |  Internet Rank