Jump to content

zppblood

Members
  • Posts

    519
  • Joined

  • Last visited

zppblood's Achievements

Invested Member

Invested Member (3/7)

0

Reputation

  1. I'm not a PERL programmer, but I think the line print "Content-type: text/html" should be changed to "Content-type: text/html\n\n" since you are working with headers.
  2. That's not a really good idea because it can easily be changed. Try using !empty() in a conditional to see if all required fields are filled out.
  3. Learn getElementById and getElementsByTagName; they are very helpful in Javascript.
  4. When using XHTML, you will have a /> when you use a markup tag that doesn't have a closing tag such as the img, br, etc.
  5. I think you might be using something like pixels, and could change it to percentages.
  6. zppblood

    Simple Login

    I would say to make the password not simple/easily guessed (a word that is related to your site). Don't use words that are found in dictionaries, and use non alpha-numeric characters. Make the password long (not too long that people can't remember, have to write down if it's sensitive information, etc.) Use hash functions such as SHA-1.Read this from microsoft.com about strong passwordshttp://www.microsoft.com/athome/security/p...y/password.mspxUse this if you want to check if your password(s) are weak, medium, strong, or besthttp://www.microsoft.com/athome/security/p...rd_checker.mspx
  7. If you are using folders for each of them.<?php $dir=explode('/', $_SERVER['SCRIPT_NAME']); echo 'Home'; for($i=0; $i<count($dir); $i++) { $link.='/'.$dir[$i].'/'; echo ' -> <a href="/'.$link.'/">'.str_replace('_', ' ', ucwords($dir[$i]))."</a>"; }?> Code has not been tested.
  8. Do you want to store it in a database or file? <?php $dt=Date('l, F d, Y g:i:s A'); // Date and Time $ua=$_SERVER['HTTP_USER_AGENT']; // The browser information $ref=$_SERVER['HTTP_REFERER']; // Page that brought the user to it $ip=$_SERVER['REMOTE_ADDR']; // User's IP Address echo "Date and Time: $dt<br>User Agent: $ua<br>Referrer: $ref<br>IP Address: $ip";?> This just outputs the information into the browser. I'm sure one of the other members can help you out more.EDIT: I don't know how to get the location of where the person is.
  9. If I am understanding you correctly, add session_start() at the beginning.
×
×
  • Create New...