Monthly Archives: November 2009

Receive and manipulate select form information.

The SELECT element contains one or more OPTGROUP or OPTION elements to provide a menu of choices for the user. Each choice is contained within an OPTION element. Choices can be grouped logically through the OPTGROUP element. SELECT’s NAME attribute … Continue reading

Posted in PHP Forms | Tagged , | Leave a comment

Receive and manipulate array in form post data

Arrays can be passed from a html web form to a php script. The ‘name’ attribute of the input type should be specified as an array. example : <form method="post" action="arrayformdata.php"> <label>Tags</label> <input type="text" name="tags[]"/> <input type="text" name="tags[]"/> <input type="text" … Continue reading

Posted in PHP Forms | Tagged , | Leave a comment

Zend framework invocation parameters in front controller

Invocation parameters are used to store common data inside the Front Controller. This data is passed into the Action Controller, Router, and Dispatcher for all requests.Invocation parameters can be used to pass an object created during the bootstrap to the … Continue reading

Posted in Zend Framework | Tagged , | Leave a comment

What is Model-View-Controller?

Trygve Reenskaug first devised MVC in the late 1970s for Smalltalk. The basic goal of MVC is separating user interface code into three separate areas. The three areas that MVC defines are Model, View, and Controller. These are responsible for … Continue reading

Posted in Codeigniter | Tagged | Leave a comment

Codeigniter and DataMapper ORM: Part 1

CodeIgniter is a powerful PHP framework with a very small footprint, built for PHP coders who need a simple and elegant toolkit to create full-featured web applications but currently it doesn’t have built-in ORM. Projects such as IgnitedRecord and DataMapper … Continue reading

Posted in Codeigniter | Tagged , | Leave a comment

Comments in php

Comments are used for documenting the code for developer’s reference. The lines within the comments are not executed. PHP comments are similar to the C programming language. There are two types of comments in PHP: ‘//’ is used to comment … Continue reading

Posted in Language Basics | Tagged | Leave a comment

Introduction to Basic PHP and writing your first PHP script

PHP is a server-side scripting language. PHP code is embedded in the HTML code. When this is executed on the server, HTML code understandable by the browser is sent to the client. This HTML code in then executed on the … Continue reading

Posted in Language Basics | Tagged | Leave a comment

Installing PHP on your computer

This lesson explains in detain the steps to install PHP on Windows operating system. Download PHP 5.3.0 software from the below mentioned location: http://in.php.net/downloads.php Go to Windows Binaries in the above link and download the zip package. Extract the zip … Continue reading

Posted in Language Basics | Tagged , | Leave a comment

Database Driven Websites and PHP

A static webpage is one whose content never changes unless a new page is loaded. Dynamic webpages are exactly opposite to the static webpages. The content can change without loading a new page and it can be initiated by a … Continue reading

Posted in Language Basics | Tagged , | Leave a comment

Form validation with error count.

When posting a form to a php script from a html or phtml page, we can setup a counter on the page that is posted to. The counter will be incremented on every error and can be used to notify … Continue reading

Posted in PHP Forms | Tagged , | Leave a comment

Validate form and check for non-empty.

Error checking in a form is performed using the php global array $_POST[]. if() conditions are used to manually check for existance of data. Php trim is used to enforce valid data. This function returns a string with whitespace stripped … Continue reading

Posted in PHP Forms | Tagged , , | Leave a comment

Send email with CC(Carbon Copy) & BCC(Blind Carbon Copy)

The Windows implementation of mail() differs in many ways from the Unix implementation. First, it doesn’t use a local binary for composing messages but only operates on direct sockets which means a MTA is needed listening on a network socket … Continue reading

Posted in PHP Mail | Tagged | Leave a comment

Simple email with php

Create a HTML Form that Accepts Mail-Related Information. The form must post to a php file and mail() function should be enabled on the server to complete sending email. Save as sendmail.html <html> <head> <title>Simple Send Mail Form w3mentor.com</title> </head> … Continue reading

Posted in PHP Mail | Tagged | Leave a comment

Post text area to php form

A text area can hold an unlimited number of characters, and the text renders in a fixed-width font. Php can accept the textarea data through the global array $_POST in a form post. look at the example below to get … Continue reading

Posted in PHP Forms | Tagged , | Leave a comment

Accept form post in php

To accept a html form post in php, you must set the “action” of the html form to the php script and receive html form fields in php using the name of the form field. $_POST is the php global … Continue reading

Posted in PHP Forms | Tagged | Leave a comment