Hi,
I am a php newbie, who has a page that relies on some php scripts, and to which I am trying to add a login page written in php. I took the example from here:
http://www.howtodothings.com/computers-internet/how-to-make-a-login-system-for-your-website
Basically it consists of adding:
<?
require("log.php");
?>
to the top of any page I want to protect, a log.php file which performs the actions of the form, linking to a mySQL database, and a login.php file which contains the form.
I have the login working fine, but it breaks one of the PHP scripts on the page that is protected. It is an upload script, called Weaverbox, based on FancyUpload. The uploads which are handled by a file called upload.php, aren't happening. The progress shows that they are being uploaded, but nothing is uploaded, and there is no success message. As soon as I remove the code from the top of the page requiring log.php all works fine again.
I think I may have to add some rules/extensions to resolve this conflict, but I don't know how to go about this. Would someone be able to help me get it sorted?
Thanks
Nick