Jump to content

Getting a fatal error... help!


NeverPool

Recommended Posts

Hi, I wrote another dummy script ( To get practice in ) and I get this error "Fatal error: Call to undefined function strolower() in /home/ai890puq/public_html/test/band/login.php on line 9" when i try to log in using the following script:

 

<?php 
define ('TITLE', 'Login');
require('templates/header.html');

echo '<h1>Login Form</h1>
		<p>Users that login have access to recorded audio, videos, and much more!</p>';
if ( isset($_POST['submitted']) ) {
if ( (!empty($_POST['email'])) && (!empty($_POST['password'])) ) {
if ( (strolower($_POST['email']) == '[email protected]') && ($_POST['password'] == 'testpass') ) {
	ob_end_clean(); //Destroy the buffer!
		header('Location: welcome.php');
			exit();
} else {
	echo '<p>The submitted email address and password do not match those on file!<br /> Go back and try again. </p>';
}
} else {
echo '<p>Please make sure you enter both an email address and a password!<br /> Go back and try again.</p>';

}
} else { // Form
echo '<form action="login.php" method="post">
		<p>Email Address: <input type="text" name="email" size="20" /></p>
		<p>Password: <input type="password" name="password" sie="20" /></p>
		<p><input type="submit" name="submit" value="Log in!" /></p>
		<input type="hidden" name="submitted" value="true" />
	</form>';
}
require('templates/footer.html');
?>

 

Use the credentials "[email protected] - testpass" to log in. If you can help me out I'd appreciate it!

 

http://test.neverpool.com/band/login.php

Link to comment
https://forums.phpfreaks.com/topic/199635-getting-a-fatal-error-help/
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.