Jump to content

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']) == 'me@example.com') && ($_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 "me@example.com - 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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.