Reading Data in a form: preparing web pages, lesson -1-…
will start this tutorial to show you how to read data in a form using PHP. First, you should have a background about HTML, if not try this site to know the basics about HTML.
http://www.w3schools.com/html/default.asp
In this tutorial, I will walk with you step by step to understand how that works in a web page. Here is what I am gonna talk about:
Lesson -1-: preparing web pages.
Lesson -2- : text fields.
Lesson -3- : textareas.
Lesson -4- : check boxes.
Lesson -5- : radio buttons.
Lesson -6- : list boxes.
Lesson -7- : passwords controls.
Lesson -8- : hidden controls.
Lesson -9- : image maps.
Lesson -10- : file uploads.
Lesson -11- : buttons, making buttons data persist.
Lesson -12- : buttons, using submit buttons as HTML buttons.
Before reading data in a form, we should prepare web pages to do so.The first thing to do is to get an editor to use it to write the codes of your web pages, mostly I use ADOBE DREAMWEAVER, if you don’t like to use an editor then can use the notepad in windows. Personally, I prefer using an editor because it helps me fixing a lot of errors that may happen when i forgot something here or there.
The second important thing is to get a web server in your local computer to let you work locally on your web pages and let PHP executes in your HTML pages. The most common web server is APACHE. And the easiest way to install it is by installing XAMPP, when you install XAMPP, you will get APACHE, MYSQL and PHP. I prefer it because it is free, easy to use, and there are four distribution for XAMPP, for windows, linux, mac os x, and solaris. You can download it from here:
http://www.apachefriends.org/en/xampp.html
When you finished installing XAMPP, keep in mind that, every time you want your web pages that contain PHP to be execute, then you should put them in the (htdocs) folder, which is usually be in this path (C:\xampp\htdocs).
After you put your files in there, you can start testing them locally by typing this path in your browser, every time you want to open your web pages.
http://localhost/your filename
Now we are ready to work on PHP on the local computer, and start creating files that allow you reading data in a form. Have fun and seeyaz.








First Comment, Yay! I hope these lessons will deter my hatred of xampp , wamp,etc.
And about your tutorials, do you write them and post them one by one or just write them one per week or something… anyway, you seem well mapped out with your content — I hope you have “fun” writing the tutorials
P.S. “seeyaz”… you are growing day by day WD…
thanks deadmad for visiting my site and for your nice comment..:)
well about how i write tutorial….i first decide what to write and make a plan for what to write in each lesson and write the lesson and post it once a week… have fun in my blog…