TOP TECH
  Learn How to.....
Welcome IT Related Articles Member Area  |  Sign In  |  Sign Up
.: Home :.
General
HTML
CSS
PHP
PHP-MySQL
FrontPage
Photoshop
CorelDRAW
PageMaker
MS Office
VisualBasic
All
.

.: Home :.

Home >> PHP - MySQL
Programming with PHP 2.1 [Page 1]
Article by: Shelton Manage
Tuesday, 26th May, 2009


Now that you have the fundametals of the PHP scripting down, it's time to build on those basics and start truly progamming. I'll beging by writing HTML forms and showing how you can use PHP to handle the submitted values. Afterward, I'll cover conditionals and the remaining operators, array and one last language constuct.

Creating an HTML Form

An HTML form is created using the form tags and varias input types. The form tag look like.
Ex: form_tag.phps

The most imprtant ttribute of your form tag is the action, which page the form data will be sent. The secound attribute -method- has its own issues the choosing method.

Choosing Method

The two options - get and post reffer to the HTML method to use. In short, the get method submitted data to the reciving page as asereis of name-value.

Ex: www.articles.com/handle_form.php?name=Homer=gender=M

The benifit of get method, can be bookmarkand click back return page. But its less secure since data is visible. Post method is secure than get.

This HTML form will be use for several of the example.

Ex: form.phps | form.html



Page: First - 1 2 3 4 5 6 7 8 9 10 - Last

 



Comments


© 2009 Top Sri Lanka Top Tech.
Articles Manager β - Script by: DynamicCodes.com