NeverPool Posted April 25, 2010 Share Posted April 25, 2010 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 More sharing options...
mikesta707 Posted April 25, 2010 Share Posted April 25, 2010 the function is strtolower() Link to comment https://forums.phpfreaks.com/topic/199635-getting-a-fatal-error-help/#findComment-1047818 Share on other sites More sharing options...
NeverPool Posted April 25, 2010 Author Share Posted April 25, 2010 the function is strtolower() argh *facepalm* thanks Link to comment https://forums.phpfreaks.com/topic/199635-getting-a-fatal-error-help/#findComment-1047819 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.