Hie
I'm trying to pass variables between pages using URLs however I am encountering the following error when I do so:
Warning: main(jobSheetDi splay.php?id=20 071403PB136CoA) [function.main]: failed to open stream: No such file or directory in /home/computio/public_html/gto/index.php on line 43
Warning: main() [function.includ e]: Failed opening 'jobSheetDispla y.php?id=200714 03PB136CoA' for inclusion (include_path=' .:/usr/lib/php:/usr/local/lib/php') in /home/computio/public_html/gto/index.php on line 43
My code for the index.php is:
<?php
if(isset($_SESS ION['loginStatus']))
{
if($_SESSION['loginStatus'] == 1)
{
$page = $_GET['page'];
if($page)
{
include($page);
} else{
include("manage Main.php");
}
)
}
else
{
include("loginF orm.php");
}
?>
The page that has got the hyperlink that leads to the stuffed up page is as follows:
<?php
$min = 15;
?>
<a href="index.php ?page=jobSheetD isplay.php?id=
<?php displayEnteredI nfo($t,$min);?> ">
<?php
echo displayEnteredI nfo($t,$min);
?></a>
When I click this hyperlink it gives me the above error messages but if i remove the "index.php?page =" bit in the above URL it works perfectly, I however need to use some of the stuff on the index page so code some please help me on how to go about the problem..
Thanx simba
I'm trying to pass variables between pages using URLs however I am encountering the following error when I do so:
Warning: main(jobSheetDi splay.php?id=20 071403PB136CoA) [function.main]: failed to open stream: No such file or directory in /home/computio/public_html/gto/index.php on line 43
Warning: main() [function.includ e]: Failed opening 'jobSheetDispla y.php?id=200714 03PB136CoA' for inclusion (include_path=' .:/usr/lib/php:/usr/local/lib/php') in /home/computio/public_html/gto/index.php on line 43
My code for the index.php is:
<?php
if(isset($_SESS ION['loginStatus']))
{
if($_SESSION['loginStatus'] == 1)
{
$page = $_GET['page'];
if($page)
{
include($page);
} else{
include("manage Main.php");
}
)
}
else
{
include("loginF orm.php");
}
?>
The page that has got the hyperlink that leads to the stuffed up page is as follows:
<?php
$min = 15;
?>
<a href="index.php ?page=jobSheetD isplay.php?id=
<?php displayEnteredI nfo($t,$min);?> ">
<?php
echo displayEnteredI nfo($t,$min);
?></a>
When I click this hyperlink it gives me the above error messages but if i remove the "index.php?page =" bit in the above URL it works perfectly, I however need to use some of the stuff on the index page so code some please help me on how to go about the problem..
Thanx simba
Comment