Jump to content

page linking


pnerd

Recommended Posts

well the index.php is the actual page containing the script

 

everything after the "?" is a passed variable from looking at that the page can decide what to do so for example:

 


if (isset($_GET['p']))
{
   do this
}
else
{
  or do this;
}

 

typically its to point the page in the right direction depending on what information is passed

Link to comment
https://forums.phpfreaks.com/topic/50772-page-linking/#findComment-249631
Share on other sites

inde.php is a file name ? this means a query idname is a variable idname=value is the value that you are passing to the page you are calling. & seperates the variables.

 

so index.php?idname1=hello&idname2=thanx    etc...

 

On the page recieving the variables you will set up your PHP to be

<php

$idname1=$_GET["idname1"];

$idname2=$_GET["idname2"];

 

echo $idname1;

echo "<br>";

echo $idname2;

?>

 

Try it out.

Link to comment
https://forums.phpfreaks.com/topic/50772-page-linking/#findComment-249633
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.