Jump to content

Link Problema


aznjay

Recommended Posts

Okay i'm trying to make a website...wheen you click the link the page the is from that link shows up to another table, so your website will be like index.php?=something and I have been trying to figure that out. Can anyone help me? or redirect me to a tutorial...coz' I know it's simple, but so complicated for some reason.
Link to comment
https://forums.phpfreaks.com/topic/27517-link-problema/
Share on other sites

You mean like to where you can type index.php?view=view like that and it would show a new page? To do that you would have:

[code]
<?php
if($_GET['view'] == 'view')
{
echo "Welcome to my second page";
}
?>
[/code]
The first "view is what comes after ? and then second one is what comes after =. You can make these views whatever you want it to say, even number, anything. To access this new page you would type in your address bar .../page.php?view=view you can even take this further into adding &=view2 even more after that so just let me know how it comes out. Thanks.
Link to comment
https://forums.phpfreaks.com/topic/27517-link-problema/#findComment-125824
Share on other sites

[quote author=Caesar link=topic=115257.msg469234#msg469234 date=1163716149]

index.php?p=puppies

[code]<?php

if($_GET[p] == 'puppies') {

  echo"Stray dogs should be beaten to death with clubs";

  }

?>[/code]
[/quote]
I know what this code does but what I mean is it it's a seperate file like index.php?=what.php
then that file will show up in the layout?
Link to comment
https://forums.phpfreaks.com/topic/27517-link-problema/#findComment-125833
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.