>>  Site Map >>  Forums >>  General 7x

Forum module - topics in forum:



General 7x - Discussions reagarding any other PHP-Nuke Problems. 7x



Form display

Can't seem to find a solution for this.

I have some html forms on my site and I'm using
Code: :
if (!isset($mainfile)) { include("mainfile.php"); }
include("header.php");

at the top and
Code: :
include("footer.php");

at the bottom which works fine when the file is in the root, domain.co.uk/formname.php

But if I put the form in a folder, domain.co.uk/folder/formname.php, the header and footer bits don't display. (please excuse the non technical terminology:D )
Like this

Bit stuck on how to get it working.

Using 7.6

Anyone help with this or able to tell me it's not possible.

Thanks






So do you want them running as modules or just a php page using your header and footer?






Just a php page.

There's 11 of them so I was just going to put them in a folder






Anyone Confused: Confused






Replace:

Code: :
if (!isset($mainfile)) { include("mainfile.php"); }
include("header.php");

include("footer.php");


with:

Code: :
if (!isset($mainfile)) { include("/mainfile.php"); }
include("/header.php");

include("/footer.php");


That should do it.






nope same display as before.

I even tried it with a full url but that just displays a messed up front page. Confused






Try this:

Code: :
if (!isset($mainfile)) { include("../mainfile.php"); }
include("../header.php");

include("../footer.php");





Attention! You are currently viewing sitemap page!
We strongly suggest to look at original content

Search from web

Valid HTML 4.01 Valid CSS