I am using the index page as a header and then include any other pages within it using the previous code.
I also have a form page called signup.php. The form action is add.php and this file adds a user to a mysql database and if there are any errors its stored in a variable called $error
this file is basically this
Code: [Select]
if ($error == ""){
//then add user to database etc
else {
include("index.php");
I want it to include the signup.php with the errors on not the index page
but if i try to include("include/signup.php")
it appears but it not inside my index.php
my signup.php picks up the error using:
Code: [Select]
<?php echo "$error" ?>
so ideally I want to inclue("index.php?id=signup") but this errors as below:
Warning: include(index.php?id=signup) [function.include]: failed to open stream: No such file or directory in /web1/user3653/website/v3slider/add.php on line 163
Warning: include() [function.include]: Failed opening 'index.php?id=signup' for inclusion (include_path='.:') in /web1/user3653/website/v3slider/add.php on line 163
Any thoughts?
I also have a form page called signup.php. The form action is add.php and this file adds a user to a mysql database and if there are any errors its stored in a variable called $error
this file is basically this
Code: [Select]
if ($error == ""){
//then add user to database etc
else {
include("index.php");
I want it to include the signup.php with the errors on not the index page
but if i try to include("include/signup.php")
it appears but it not inside my index.php
my signup.php picks up the error using:
Code: [Select]
<?php echo "$error" ?>
so ideally I want to inclue("index.php?id=signup") but this errors as below:
Warning: include(index.php?id=signup) [function.include]: failed to open stream: No such file or directory in /web1/user3653/website/v3slider/add.php on line 163
Warning: include() [function.include]: Failed opening 'index.php?id=signup' for inclusion (include_path='.:') in /web1/user3653/website/v3slider/add.php on line 163
Any thoughts?