Thursday, April 21, 2016

Making way writing BOLD, Italic, and Underline

This time we will discuss about bold, italic, and underline as well.
Sure you already know, we'll discuss BOLD for Making Can Be bold letters
and also italic To Make Writing become skewed On A Letter
And also the last we will make Underline that serves to make the bottom line on A Letter

We just started.


Making way writing BOLD, Italic, and Underline

<B> = BOLD
<I> = italic
<U> = Underline


First We Will Make BOLD

The code used to create bold text is very easy.
Ie "<b>" And also Concluding "</ b>"

Placement Example code is as follows:



<i> It's Posts BOLD </ b>



The next we are going to Make Italic

The code used to create it italic:
Ie "<i>" And jgua closing "</ i>"

Sample Placement code is as follows:

<i> This text Italic </ i>


And the last is Underline

The code used to create it Underline:
Ie "<u>" And jgua closing "</ u>"

Sample Placement code is as follows:

<u> This article Underline </ u>

And that's code for making it.


Example To All three are also less like this:


<Html>
<Head>
<Title> BOLD, Italic, and Underline </ Title>
</ Head>
<Body>
<B> It's Posts Strong </ b>
<I> This text Italic </ i>
<U> This article UNDERLINE</ u>
</ Body>
</ Html>

If in HTML You can see the results and its differences.
Very easy is not it?




See you at next post.

Introduction Font Size (letter) Using HTML

In previous article we have discussed about the Introduction of basic HTML.
How? whether it has been a little more understanding now?
hopefully, you already understand. And If You Do not Understand, You Could Read it Again.
If you've got it now We Discusses About



Introduction Font Size (letter) Using HTML

It certainly Tau, Yeah this time I will discuss about the size of the letters.
If a website because of the size of the same item may be a bit tired or we would confuse the title, subtitle, or an article.
To Differentiate and his We Can Use Tag / Html Code Here:


There are 6 HTML code that can be used, ie

1. <h1> This Used To Create Heading 1 (H1) </ h1>
2. <h2> This Used To Create Heading 2 (H2) </ h2>
3. <h3> This Used To Create Heading 3 (H3) </ h3>
4. <h4> This Used To Create Heading 4 (H4) </ h4>
5. <h5> This Used To Create Heading 5 (H5) </ h5>
6. <h6> This Used To Create Heading 6 (H6) </ h6>

Extras: * The Big Figures Heading Used, And The Small Pula Case that will be displayed.

 

Sample Preparation / Installation is as below:

<Html>
<Head>
<Title> About font in HTML </ Title>
</ Head>
<Body>
     <H1> This Used To Create Heading 1 (H1) </ h1>
     <H2> This Used To Create Heading 2 (H2) </ h2>
     <H3> This Used To Create Heading 3 (H3) </ h3>
     <H4> This Used To Create Heading 4 (H4) </ h4>
     <H5> This Used To Create Heading 5 (H5) </ h5>
    <H6> This Used To Create Heading 6 (H6) </ h6>
</ Body>
</ Html>

You then try Save,
And see what is different about the result HTML.




That may Help We Can Only Give Regarding Introduction Font Size (letter) Using HTML
We hope you understand, the more passion for creativity and also hopefully this article useful for you all.

See you in the next post.

HTML BASIC STRUCTURE RECOGNITION

Prior to her if you know about HTML?
for those who do not know what is HTML, HTML Abbreviation From (Hyper Text Markup Language) And Its Programming Language It is often used to create a website,
And this time I'll Articles HTML BASIC RECOGNITION



HTML functions

Before it Did you Know HTML function?

so HTML Serves to Make a Website page and also display a variety of information that is fed (input) into the html His example text, video, images, etc. It can be displayed in the browser, HTML can also be used as a link that later it can Other website page towards her with a specific codes.
Also Tool Manufacture and HTML is to base Can Use Notepad.
Okay just without lingering, We Begin.

HTML BASIC STRUCTURE RECOGNITION

<Html>
<Head>
<Title> TITLE IN BROWSER TAB </ Title>
</Head>
<Body>
The entire article to be displayed in the Save section of this body.
</Body>
</Html>

Information :



  • <Html> : Code This is the code used To Start An Html.
  • <Head> : Code Serves As Head, Header, or top.
  • </Head>: It Works To Close Header, Dan Begins With Dashes "/"
  • <Title>: This Code Used To Give Titles Will Be Shown at the TAB Browser
  • </Title: Code It Works To Close an earlier title, And Also Begins With Dashes "/"
  • <Body>: Code It Serves as Fill Or Agency (All That You Want displayed on the page Saved here)
  • </Body>: This Code serves as a cover of the Content or the Agency, and this was preceded by a slash "/"

And Also Do not Forget Save With Format (.html)
example Website.html
This Is a Simple Example Of Html Above.



And Above it is a CODE-CODE WILL BASIC that is in an HTML.
Because the code is very important in terms of making / Build a website.
That alone might HTML Pages About all I can say at this time the opportunity, hopefully this article can be helpful to all of you Especially For Who Want to Start Learning to Make a Simple Website.

See you at next post.

Tuesday, April 19, 2016

How to make captcha with php

MAKE CAPTCHA

 

 


CAPTCHA is an acronym for "Completely Automated Public Turing test to tell Computers and Human Apart" which was created in 2000, to ensure answers on computers made by man, not by robots. CAPTCHA typically use letters and numbers and appear on a web page. CAPTCHA is also used to minimize Spam entries on a web page. CAPTCHA process usually involves the user to solve a CAPTCHA and computers that will assess the results of the simple test.
In the article, I will provide a tutorial to make CAPTCHA own guys by using PHP Script. CAPTCHA actually makes it easier, because guys just stay Generate some character and put it in the image and store it in a variable.
Remember .. CAPTCHA it is very important for a website, because with the help of CAPTCHA we can avoid spam.


Immediately wrote us consider the steps to make CAPTCHA with PHP Script

1. Creating web pages CAPTCHA

You can start by opening Notepad and type the script code below:


The script is already there is a form that consists of input username, password input and input CAPTCHA form.

Once this process is completed then we're done making the CAPTCHA on a web page.
As this zoom

 

2. Make a CAPTCHA Generate Script

Go back in Notepad and typing the following script:

<? Php

// Enable session
session_start ();

header ( 'Content-type: image / png ");

// Name the session with the name of Captcha
$ _SESSION [ 'Captcha'] = "";

// Set the image size
$ Gbr = ImageCreate (200, 50);

// Background color image
ImageColorAllocate ($ gbr, 167, 218, 239);

$ Gray = ImageColorAllocate ($ gbr, 128, 128, 128);

$ Black = ImageColorAllocate ($ gbr, 0, 0.0);

// Specify font
$ Font = "monaco.ttf";

// Create a random number and is shown in the picture
for ($ i = 0; $ i <= 5; $ i ++) {
// Number of characters
$ Number = rand (0, 9);

$ _SESSION [ "Captcha"]. = $ Number;

$ Angle = rand (-25, 25);

imagettftext ($ gbr, 20, $ angle, 8 + 15 * $ i, 25, $ black, $ font, $ number);

// Shadow effect
imagettftext ($ gbr, 20, $ angle, 9 + 15 * $ i, 26, $ gray, $ font, $ number);
}
// To create images
imagepng ($ gbr);
imagedestroy ($ gbr);
?>

The above code only in the form of PHP code to load the image, // specify the font
$ Font = "monaco.ttf";

Because ane select font that is Monaco, You could replace it.

3. Make the code or script results

Well after we create a web page and a CAPTCHA image, we now have to create code that helps the computer to provide a CAPTCHA test results, right or wrong.
Then you can just type the following script:

<Html>
<Head>
  <Title> Check Results CAPTCHA </ title>
</ Head>
<Body>
<P align = "center"> Results Login <br/>
<?
// Call another session to begin
session_start ();
if ($ _ SESSION [ "Captcha"]! = $ _ POST [ 'nilaiCaptcha "]) {
echo "Your Username". $ _ POST [ 'username']; echo "<br />";
echo "Your password". $ _ POST [ "password"]; echo "<br />";
echo "Captcha code You Wrong";
} Else {// if the sparks fly passes
echo "Your Username". $ _ POST [ 'username']; echo "<br/>";
echo "Your password". $ _ POST [ "password"]; echo "<br/>";
echo "Captcha code You Right";
}
?>
</ P>
</ Body>
</ Html>



If the results of CAPTCHA correctly, it will appear "correct CAPTCHA code" and if any of it will appear "CAPTCHA code you are wrong".


4. Trial

When finished, You need to test it, You go to a web page, then log in and enter a CAPTCHA.


Now that's how to make CAPTCHA using PHP Script, I hope this tutorial helps guys.

Thank you for visiting …