Agenda Web Application Web Page development WAMP Familiarization of WAMP Environment Simple applications using WAMP
HTML File <html> <head> <title>A BASIC HTML FORM</title> </head> <body> <FORM NAME ="form1" METHOD =" " ACTION = ""> <INPUT TYPE = "TEXT" VALUE ="username"> <INPUT TYPE = "Submit" Name = "Submit1" VALUE = "Login"> </FORM> </body> </html>
Web Development JSP ASP.NET Python PHP Ruby
Apache Software Foundation www.apache.org
open source relational database management system MySQL is written in C and C++ The most popular database system that is used with PHP is MySQL www.mysql.com
PHP Hypertext Preprocessor server-side scripting language Dynamic and interactive Web pages PHP is an open source software
Install WAMP Server www.wampserver.com Double click on the WAMP icon On Taskbar, wamp icon will appear as Red, then as Orange and finally to Green Green indicates all components in wamp working properly
Localhost phpMyAdmin www directory
www directory C:\wamp\www\<your folder> Create a folder Save your php files into that folder C:\wamp\www\<your folder>
PHP File <html> <body> <h1>My First PHP Program</h1> <?php echo "Welcome to PHP"; ?> </body> </html>
<html> <body> <h3>Adding Number using form</h3> <form method="POST" name="form1"> <p>First No <input type="text" name=“atext"/></p> <p>Second No <input type="text" name=“btext"/></p> <p><input type="submit" name="bttn" value="submit"/></p> <?php if(isset($_POST['bttn'])=="submit"){ $a=$_POST[‘atext']; $b=$_POST[‘btext']; $c=$a+$b; echo "sum is ".$c; } ?> </form> </body> </html>