craigtb Posted June 7, 2006 Share Posted June 7, 2006 I have a script that is fully functional. I am trying to implement a layout to it. I have the layout working (kinda). On the pictures that are links its not sending me to thr right page. Its taking me to a blank page with the info. I want it to include the info in the layout. here is what i have.[code]<html><head><meta http-equiv="Content-Type"content="text/html; charset=iso-8859-1"><title>Untitled </title></head><body><table border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="2"><img src="images/index_01.gif" width="800" height="182"></td> </tr> <tr> <td valign="top" width="194"><a href="?logos=view.php"><img src="images/index_02.gif" border="0" width="194" height="50"></a><br> <a href="?logos=add.php"><img src="images/index_07.gif" border="0" width="194" height="40"></a><br> <a href="?logos=list.php"><img src="images/index_08.gif" border="0" width="194" height="48"></a><br> <a href="?logos=deletelist.php"><img src="images/index_09.gif" border="0" width="194" height="49"></a></td> <td width="500"><font size="2" face="Geneva,Arial,sans-serif"><?php if ($logos == "") { $rarrr ="view.php";}include("$logos"); ?></font></td> </tr></table></body></html>[/code]Any help? Quote Link to comment https://forums.phpfreaks.com/topic/11415-not-including/ Share on other sites More sharing options...
Orio Posted June 7, 2006 Share Posted June 7, 2006 I have 3 questions about your script:-From where did the "$logos" come from?-What is $rarrr doing?-Why do include $logos if it's empty or if it's not?Orio. Quote Link to comment https://forums.phpfreaks.com/topic/11415-not-including/#findComment-42835 Share on other sites More sharing options...
craigtb Posted June 7, 2006 Author Share Posted June 7, 2006 [!--quoteo(post=381035:date=Jun 7 2006, 11:40 AM:name=Orio)--][div class=\'quotetop\']QUOTE(Orio @ Jun 7 2006, 11:40 AM) [snapback]381035[/snapback][/div][div class=\'quotemain\'][!--quotec--]I have 3 questions about your script:-From where did the "$logos" come from?-What is $rarrr doing?-Why do include $logos if it's empty or if it's not?Orio.[/quote]I was told you could make the if ($whatever == "") could be anythign so i called it logos because its related to the site. The rarrr was supposed to be changed, that was my mistake but i changed it and it still doesnt work.Its supposed to if its the home page just automatically include view.php but if its site.com/?logos=page.php then it should include page.php. Quote Link to comment https://forums.phpfreaks.com/topic/11415-not-including/#findComment-42891 Share on other sites More sharing options...
craigtb Posted June 7, 2006 Author Share Posted June 7, 2006 Ok for some reason the file i was using didnt have the ?logos=page.php in the link. But i put it in and now it jsut goes cycles through the log in, so thats jsut somethign i will have to work on. Quote Link to comment https://forums.phpfreaks.com/topic/11415-not-including/#findComment-42897 Share on other sites More sharing options...
Orio Posted June 7, 2006 Share Posted June 7, 2006 Ok so you are using GET.Here's what the php part should look like:[code]<?phpif(!isset($_GET['logos'])){$logos="view.php";}else{$logos=$_GET['logos'];};include($logos);?>[/code]Orio. Quote Link to comment https://forums.phpfreaks.com/topic/11415-not-including/#findComment-42900 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.