Loops – PHP Basics
Loop is used whenever you want a code to run over and over again in row. We use Loop instead of adding almost same codes many times. Loop Statements : Loop continues as long as the condition is true –…
Loop is used whenever you want a code to run over and over again in row. We use Loop instead of adding almost same codes many times. Loop Statements : Loop continues as long as the condition is true –…
If…Else..ElseIf Statement is used when you want to perform different conditions in a program. If one condition is true another is also true – If Statement If one condition is true and another is false – If..else Statement If more…
In PHP to format a date or a time, ‘date( )’ function is used. This function makes time and date easy to read. Commonly used characters for dates : d, m, y, l (small L). Here, ‘d’ represents day, ‘m’ represents…
Here, In this simple form validation “Name”, “E-mail”, “Subject”, “Feedback” and “Gender” fields are required. These fields cannot be empty (error message is displayed if left empty). It must be filled out in the HTML form. For this validation, Variables – $nameErr,…
This is a Python script of the classic game “Hangman”. The word to guess is represented by a random alphabet (A-Z). If the player guess a letter which exists in the word, the script writes it in all its correct…
This program coverts Decimal number to binary, hexadecimal and octal. Follow these Instructions or You can simply download source code below: Html Code <b>Insert Decimal Number: </b><input type = “text” name = “deci” id = “deci” size = “15” maxlength…
This JQuery script will show how to auto calculate sum while you type values in the fields. It’s a Simple Program for beginners. There’s nothing much in this program, user types a certain value in empty TextBox after that, the sum…
This Simple Program allows user to enter password length and generates Random Password according to user’s length. Follow These Instructions :- First, Create Html Code: <form name=”pgenerate”> <input type=”text” size=18 name=”output”> <input type=”button” value=”Generate Password” onClick=”populateform(this.form.thelength.value)”><br /> <b>Password Length:</b> <input…
Multiplication Table From 0 to 15. Python Code :- #multiplication table from 0 to 15 print(” “,end=””) for i in range(16): print(“%5d|”%i, end=””) print() print(“______” * 17) for i in range(16): print(“%5d|”%i, end=””) for j in range(16): print(“%5d|”%(i*j), end=””) print()…
Simple Python Program To Calculate Salary of Employee with their certain Taxable amount. This program allows the user to enter values such as: Name of Employee, Name of the Company, Salary Amount and then calculates the Taxable amount with certain salary…
This simple Python program allows the user to enter infinite values (with y/n condition ) and then add those entered numbers and displays the average number. Python Code :- a=[ ] b=’y’ while b==’y’: n=input(‘Enter a Number: ‘) a.append(int(n)) b=input(‘Continue(y/n): ‘) s=0…