Jump to content

zppblood

Members
  • Posts

    519
  • Joined

  • Last visited

Posts posted by zppblood

  1. The error message:Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request.The contents of "myscript.pl" are:#!/usr/bin/perlprint "Content-type: text/html";print "hello";
    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. this worked for me to, the only problem is it sends the form even if the required fields are blank, and before it gave me a header error so I had to comment out these lines : header ("Location: $redirect"); exit;} else also whats the function of these <input type=hidden name="redirect" value="http://tb31.homeip.net/takk.htm">and how to make the form only send if the fields are filled ?I tought I only had to change these -> <input type=hidden name="required" value="email, nome, address, addressnumber, complemento, CEP, cidade" />thats what i did on mine ;/
    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. <html><head><script type="text/javascript">function disp_prompt(){times=prompt("How many numbers?","0")var numbers = "";while(times > 0){var x = Math.round(9*Math.random());numbers = numbers + x;times--;}document.getElementById("random").innerHTML=numbers;	}</script></head><body><input type="button" onclick="disp_prompt()" value="Display a prompt box" /><p id="random"></p></body></html>

  4. 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

  5. Hello EveryBody, I want help from u.I made a website. Suppose I visited the page from Example : - 'Home->Products->Product Name->Product Detail'. So i would like to Just Put that type of Link's Code on Every Page as per requirement.I have seen this type of Link Most Of the Site, So that User Can Easily Understand Which Path he/she has travelled through Site. Remember I don't want the File Name's as generated in joomla.I would not like to write all the links on each & every page.I am looking for the Code/ Function/File which i have to include in every page & i got the result.I hope that somebody help me to sort out this problem.
    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.

  6. 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.

×
×
  • Create New...