![]() ![]() For the desktop app, Windows 7 or later with at least 512 mb of RAM free is required. There’s also the option to sign up through Facebook if you don’t want to use your email.Īt this point, you’re prompted to download the desktop or mobile app to continue. After the avatar has been created, enter a name for the avatar, your name and email address and your account is created. As for clothing, there were around 50 different pieces to choose from including tops, bottoms, and shoes. The range from plain everyday ponytails to hip asymmetrical bobs to voluminous curls. The hairstyles came in natural colors as well as neon pinks, reds, blues, and purples. Maneuvering the character while designing was clunky, and it was difficult to see what hairstyles and accessories like earrings looked like from the side because the character focuses on the user during the turn instead of looking straight ahead. The user starts off with only eight different skin shades to choose from and nine “heads”, or premade features. It should send an email to you containing your IP address and your avatar name.Avatar creation is relatively simple. ![]() To test, after saving, refresh your HP or preview it. ![]() The last line appends the created iframe to the body of the parent page. The second-last line simply makes the iframe invisible/hidden. Remember we used "$_GET" in our PHP file? Well, that's what is being used here. The next line directs the iframe to the get_info.php file with an argument "AviName" followed by putting in the value contained by the variable "vName". The next line declares a variable named "vName" which contains the avatar name of the person who visits your HP. Right then, the first line declares a variable named "ifr" which contains an iframe element (it is built-in in JavaScript). Remember to replace the part "with your actual website's URL. Var vName = document.getElementById("mininav-avname").innerHTML Var ifr = document.createElement("iframe") The URL to your "get_info.php" file would be as follows: It is actually the folder which is sometimes called "htdocs" or "public_html" or something like that. Go to your file manager and put the file "get_info.php" into preferably the root dirctory, where the homepage of your website is present. Sign up for a webhost which provides PHP hosting and email service or log in to your account if you already have an account with a host that provides those two things. Save the file with the name "get_info.php". ![]() Remember to always give parameters to this function in quotes (preferably double quotes). It's the PHP mail() function, whose first parameter is the email address to send the email to, the second is the subject and the third and last one is the actual body of the email message. This is the most efficient method of passing variable values from JavaScript to PHP in my opinion. PHP can access GET information by accessing $_GET, where x is a string containing the name of the argument. JavaScript is a client oriented language, it cannot deal with IP obtaining or other server related tasks.Īnother variable declaration by the name "$avi" which has the return value of the function "$_GET " which is the easiest way to send information to a PHP document is by using the GET method, which appends information to the end of the URL as a parameter/argument (for example, "page.php?arg1=value"). PHP is server oriented, it works on servers only and performs server tasks. Keep in mind that we're dealing with two languages that are technically opposite to each other. We declare a variable named "$ip" and tell it to store the value returned by the PHP function "getenv(REMOTE_ADDR) " which is the function in PHP to get the IP address. First off, remove the part with "Your Email Address" with your actual email address so that it emails it to you and the script works. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |