Jump to content

grandadevans

Members
  • Posts

    30
  • Joined

  • Last visited

    Never

Everything posted by grandadevans

  1. Hi all. Does anybody know how the double underline links work. I would love to be able to use them for my site.
  2. Hi, Thanks for that. I have just sent an email to 1&1 to see how I go about setting the cron jobs up. In their FAQ it explains how to do it from a shell but it doesnt tell you how to connect to the shell. Does anybody have any ideas as I know that 1&1 are particularly slow at responding. If I need to do it from my system I am not using linux, I am using XP, does that matter? Thanks again to all, John
  3. Hi, I have created a script to email users if it is their birthday. Is there a way that I can get the php file to run daily by itself on my web srever. Thanks in advance, John
  4. Hi. I am having serious trouble with my login page. [a href=\"http://www.thebirdsblock.com/login.php\" target=\"_blank\"]Login Page[/a] I have tried everything that I can think of to fix it. I am now willing to pay somebody to fix it. The problem is that I can get my MM_Username to work once if I try a blank page with the login server behaviour but if I put it into my template I cannot get it to work. I have tried everything I can think of. If the login is successful it should go to the index page and replace the login gif with a my account gif. It redirects a it should but it wont hold the session variable. I have created a test user of Username: test password: password if anybody wants to have a go. As for any offers to take control of it, let me know how much you want (sensible quotes only though). Thanks in advance to all. John
  5. Hi, I am having massive trouble with my login page. I have ceated it in DWMX and DW8 and neither work. I have created a document login2.php and it passes the MM_Username created by DW well. As soon as I try and add anything to the page or try to copy the script directly into a template it doesn't pass on the session variable. I have posted the entire script below, can someone please see if they can spot the reason why it wont work for me. Anothr bug is it works fine on the localhost, which is even more annoying. This is the login page that works login2.php <?php require_once('Connections/tbbdb.php'); ?> <?php // *** Validate request to login to this site. if (!isset($_SESSION)) { session_start(); } $loginFormAction = $_SERVER['PHP_SELF']; if (isset($_GET['accesscheck'])) { $_SESSION['PrevUrl'] = $_GET['accesscheck']; } if (isset($_POST['username'])) { $loginUsername=$_POST['username']; $password=$_POST['password']; $MM_fldUserAuthorization = ""; $MM_redirectLoginSuccess = "index.php"; $MM_redirectLoginFailed = "login_bad.php"; $MM_redirecttoReferrer = false; mysql_select_db($database_tbbdb, $tbbdb); $LoginRS__query=sprintf("SELECT username, password FROM users WHERE username='%s' AND password='%s'", get_magic_quotes_gpc() ? $loginUsername : addslashes($loginUsername), get_magic_quotes_gpc() ? $password : addslashes($password)); $LoginRS = mysql_query($LoginRS__query, $tbbdb) or die(mysql_error()); $loginFoundUser = mysql_num_rows($LoginRS); if ($loginFoundUser) { $loginStrGroup = ""; //declare two session variables and assign them $_SESSION['MM_Username'] = $loginUsername; $_SESSION['MM_UserGroup'] = $loginStrGroup; if (isset($_SESSION['PrevUrl']) && false) { $MM_redirectLoginSuccess = $_SESSION['PrevUrl']; } header("Location: " . $MM_redirectLoginSuccess ); } else { header("Location: ". $MM_redirectLoginFailed ); } } ?> <form name="form1" method="POST" action="<?php echo $loginFormAction; ?>"> Username: <input name="username" type="text" id="username"> Password: <input name="password" type="text" id="password"> <input type="submit" name="Submit" value="Submit"> </form> I wont submit the entire code for the login page that doesn't work unless anybosy asks for it but can anybosy see why t wouldn't work from this script. and can someone please tell me how I get the code colour coded in the posts as that is the main reason I have not posted the full page that doesn't work. Thanks in advance. John
×
×
  • 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.