GET SOURCE CODE
879 subscribers
23 photos
16 files
21 links
This I where everyone one get PHP SOURCE CODES FOR FREE IF YOU NEED PROJECT TITLE AND SOURCE CODE FOR YOUR FINAL YEAR PROJECT THIS IS IS THE RIGHT PLACE IF YOU WANT ANY PROJET ASK @phpsourcecode
HAVE A FUN WITH INTERNET PROGRAMMING
Download Telegram
Simple website creating competition for HTML beginners
Our channel is preparing a website development competition for HTML beginners the competition is coding an HTML code for hotel booking it must be only riten by HTML and CSS becouse it is an exercise.
register at @codeadicted
https://telegram.me/codehtmlcss
GET SOURCE CODE pinned «Simple website creating competition for HTML beginners Our channel is preparing a website development competition for HTML beginners the competition is coding an HTML code for hotel booking it must be only riten by HTML and CSS becouse it is an exercise.…»
The following steps are required to design a registration form (Sign Up Form):
Step 1: Firstly, install a virtual server on your computer (eg Xampp, Wamp).
Xampp is a free and open-source cross-platform web server solution stack package developed by Apache Friends, consisting mainly of the Apache HTTP Server, MySQL database, and interpreters for scripts written in the PHP and Perl programming languages. XAMPP stands for Cross-Platform (X), Apache (A), MySQL (M), PHP (P), and Perl (P).
Step 2: Next we will require an editor where the HTML code has to be written. You can use any editor (such as Notepad++, Adobe Dreamweaver, NetBeans, etc). Here we will use Notepad ++.
Download the software here https://notepad-plus-plus.org/downloads/

Step 3 : Open the Notepad++ text editor and write the HTML code for designing the HTML Sign Up page.\
We will use various HTML tags to design the page.
You can include the fields according to your convenience (i.e whichever fields you require for the form).
Here I have included the fields according to my convenience.
01. < html >
02. < head>
03. < title > Registration Form </ title >
04. </ head >
05. < body>
06. < link href = "registration.css" type = "texcss" rel = "stylesheet" />
07. < h2 > Sign Up </ h2 >
08. < form name = "form1" action= "modified.form-data" >
09. < div class = "container" >
10. < div class = "form_group" >
11. < label > First Name: </ label >
12. < input type = "text" name = "fn>
13. </ div >
14. < div class = "form_group" >
15. < label > Middle Name: </
label >
16. < input type = "text" name = "m>
17. </ div >
18. < div class = "form_group" >
19. < label > Last Name: </ label >
20. < input type = "text" name = "ln>
21. </ div >
22. < div class = "form_group" >
23. < label > Password: </ label >
24. < input type = "password" name>
25. </ div >
26. </ div >
27. </ form>
28. </ body >
29. </ html >
Here I have included the LINK tag to link the CSS file for this HTML page.
HTML or Hypertext Markup Language is the standard and most basic language in use to create web pages.
CSS stands for Cascading Style Sheets
This is used for styling purpose. HTML coding is just a structure and CSS is applied to dictate your website's look and feel. Font size, font color, font style styling of images, page layout, mouse-over effects and more are determined by CSS. The CSS applied over the above HTML coding is given below.
01. .container {
02. max-width : 1350px ;
03. width: 100% ;
04. margin : 50px ;
05. height : auto ;
06. display : block ;
07. }
08.
09. body {
10. color : #8A2BE2 ;
11. font-size : 20px ;
12. font-family : Verdana , Arial , Helvetica, monospace;
13. background-color : #F0E8A0 ;
14. }
15.
16. h 2 {
17. text-align : center ;
18. }
19.
20. .form_group {
21. padding: 10px ;
22. ;
23. display : block ;
24. }
25.
26. label {
27. float: left ;
28. padding-right : 50px ;
29. line-height : 10% ;
30. display : block ;
31. width: 208px ;
32. }
Here you would be wondering why I have used <div> i n HTML. Let me explain to you the importance of using
<div> .
The <div> element is often used as a layout tool.
We need to see how to use them later on in the body section of the page. To use your class, all you need to do is add the class=" " attribute to the tag you wish to have the style of your class. So, if you wanted a line of text to be read, you could add the class attribute to a <DIV> tag, like this:
<div class="form_group"> . Here we have used this class because we can directly apply CSS on this class. The tags which has been opened should be closed also.
Now let us move further.
Step 4 : Apply CSS on the HTML code. General rules for applying CSS are:
We use dot(.) beside any class to apply effects into it and ‘#’ tag before any ID. E.g .
.container {
// css attributes will be written here
}
Here I have taken container as a class. Class is user-defined.
Note: Save the Sign_Up page in the xampp folder->htdocs->create a new folder( user-defined) . Inside this new folder, you have to keep all the data related to your project. It may be any kind of images used in webpage, HTML coding, or CSS coding. I mean to say all the things that are used in creating a web page must be under one roof (i.e under one folder).
Next, we will insert data into the fields of the sign_up page and store the information in MySQL.
For that, we have to start the xampp controller. Start Apache and MYSQL in the XAMPP controller.
Now we will go to the next level where we will make use of PHP syntax.
PHP
PHP is a server-side scripting language designed for web development but also used as a general-purpose programming language. PHP is an acronym for " PHP: Hypertext Preprocessor".
PHP is a widely-used, open-source scripting language. PHP scripts are executed on the server. PHP is free to download and use. PHP code is executed on the server, and the result is returned to the browser as plain HTML. PHP files have extension " .php ". PHP can collect form data.
PHP can add, delete, modify data in your database. It runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.) and supports a wide range of databases. PHP is easy to learn and runs efficiently on the server-side.
PHP Variables (Rules)
A variable starts with the $ sign, followed by the name of the variable.
A variable name must start with a letter or the underscore character.
A variable name cannot start with a number.
Variable names are case-sensitive ($age and $AGE are two different variables).
Output Variable
The PHP ‘ echo’ statement is often used to output data to the screen.
PHP FORMS
Write Html coding for sign_up page and save it as
index.php . Again create a PHP page named
connection.php where we will write the code for creating a connection with the database.
01. <?php
02. $servername = "localhost" ;
03. $username = "root" ;
04. $password = "";
05. $conn = mysql_connect ( $servername , $
( "unable to connect to host" );
06. $sql = mysql_select_db ( 'test' ,
$conn ) or die
( "unable to connect to database" );
07. ?>
Next we will continue from php stay connected share and join our channel
How to install Apache webserver with #php and mysql on windows computer.
On the easy way download XAMPP
link xampp
https://www.apachefriends.org/download.html

CHOOSE your computer OS and download it and then install it just like any other softwares
☝️☝️☝️☝️☝️☝️☝️☝️☝️
If you see this icon on your computer you are success fully install apache web server