Test form submission in PHP

| Webtraffic Exchange

How to test if a form is submitted in PHP?

We live in a very busy world, and sometimes we try to get things done quick-and-dirty. One of the most popular examples is to create a PHP script that renders a view and also handles form submission (action). So, what is...

Programming

Read More +
Multiple Constructors in PHP

| Webtraffic Exchange

Multiple Constructors in PHP

In most object-oriented programming languages such as Java, C++, and C#, you can define multiple constructors each having different signatures. The class calls the correct constructor based on the number of parameters, a...

Programming

Read More +
SMTP Email Address Validation

| Webtraffic Exchange

SMTP Email Address Validation

How do you validate an email address? You may validate it with a javascript on the client-side, or run a server-side validation via a regular expression or a newly available filter_var function of the PHP 5.2.x. Perhaps,...

Emails

Read More +
Zend Mail Attachments

| Webtraffic Exchange

How to add attachment with the Zend_Mail?

Files can be attached to an email using Zend_Mail->createAttachment() method. The createAttachment() method requires the content of the attachment and 3 optional arguments. Please note that it takes file content as an...

Framework

Read More +
Javascript Overview

| Webtraffic Exchange

Javascript Overview

JavaScript is an object-oriented scripting language designed to be embedded in HTML pages for added interactivity and to offer intelligence to web pages. JavaScript provides a set of objects (Array, Date, and Math), and...

Programming

Read More +