-
Posts
519 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by zppblood
-
-
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.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 ;/ -
Learn getElementById and getElementsByTagName; they are very helpful in Javascript.
-
<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>
-
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.
-
I think you might be using something like pixels, and could change it to percentages.
-
Simple Login
in PHP
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
-
If you are using folders for each of them.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.<?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.
-
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.
-
If I am understanding you correctly, add session_start() at the beginning.
PERL Forum
in Suggestions
Posted