Jump to content

mastermike707

Members
  • Posts

    23
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

mastermike707's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I don't know whether this is a margins error or what, can some1 please take a look at the page: d-ui.mastermike707.com I can post the stylesheet if need be...
  2. o ok nvm then, I only am getting the e-mail error now. What is wrong with my e-mail regxp?
  3. Wow, ok Thanks a ton. EDIT: I think register_globals is off, how do I fix this?
  4. yes all of the error checking messages are outputted.
  5. [code]$title = (isset($_POST['title'])) ? strip_tags(htmlentities($_POST['title'])) : false; $err = ($title && preg_match("/[A-Za-z0-9]{3, 50}/", $title)) ? '' : "Your title must be at least three characters long and only letters and numbers.<br />\n"; $author = (isset($_POST['author'])) ? strip_tags(htmlentities($_POST['author'])) : false; $err .= ($author && preg_match("/[A-Za-z0-9]{3, 50}/", $author)) ? '' : "Your name must be at least three characters long and only letters and numbers.<br />\n"; $email = (isset($_POST['email'])) ? strip_tags(htmlentities($_POST['email'])) : false; $err .= ($email && preg_match("/[+]@[+]\.[A-Za-z]{2,3}/", $email)) ? '' :"Your e-mail address must be valid.<br />\n"; $comment = (isset($_POST['comment'])) ? strip_tags(htmlentities($_POST['comment']))  : false; $err .= ($comment && strlen($comment) > 3 && strlen($comment) < 500) ? '' :"You must have at least 3 characters in your comment, but not over 500.<br />\n";[/code] This code never works correctly, even when the values are correct. Any idea why?
  6. Can you give me a example of something that would cause this error and then the fixed version of that code. Thank you already.
  7. Uh, what causes undefined index errors? Is it sql related or session related?
  8. I honestly don't know, I had just never thought about it like that. I guess it would be a little more load, but I think that would outweigh the load of (running, not necesssarily the query) MySQL tho? If I am wrong then just pretend I wasn't in this conversation.
  9. Just echo whatever variable contains the user's username where u want their name.
  10. [quote author=BillyBoB link=topic=102454.msg407919#msg407919 date=1154507062] wouldn't sessions like kill your bandwidth? [/quote] Can you explain that please? Doesn't the user still load the same amount of pages?
  11. Can't you just use a session? I am getting that the author does not want to store these scores, just display them. EDIT: Used to talking on an IM (used "u" instead of "you" lol)
  12. Try changing the query to this: [code]$sql = "SELECT username FROM chaoworld_b WHERE username = '$userId' AND password = '$password'";[/code]
  13. Ok, what I think you want to know is what variable is the refering url: [code=php:0]$_SERVER["REFERER"][/code]
  14. Ok idk what to do, here is the session code I ussually use: [code=php:0]class session { function start($auth = true) { session_start(); if(!isset($_SESSION['user_id']) && $auth) { header('Location: login.php'); exit; } $_SESSION['ip'] = $_SERVER['REMOTE_ADDR']; define('LOGGED_IN', (isset($_SESSION['logged_in'])) ?  $_SESSION['logged_in'] : false); } function destroy() { $_SESSION = array(); session_destroy(); } }[/code] Try that and see if it works.
  15. Maybe try clearing ur cookies? Look at the settings in php info for sessions.
×
×
  • 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.