News Feed
Sections
News Archive


Community Events
php|tek 2008 PHP Conference



feed this:

Zend Developer Zone:
View Helpers in Zend Framework
0 comments :: posted Tuesday April 29, 2008 @ 14:38:27
voice your opinion now!

The Zend Developer Zone has posted a new tutorial (from Matthew Weier O'Phinney) about a handy feature of the Zend Framework's view layer - view helpers that can be added in and reused across an application to do some pretty cool stuff.

A View Helper is simply a class that follows particular naming conventions, When attached to a view object, you can call the helper as if it were a method of the view object itself. The View object retains helper instances, which means that they retain states between calls.

View helpers can be use to do things like manipulate view data for more complex operations and carrying over data between two views, limiting the number of fetches that have to be done. He shows how to create a simple helper - My_Helper_FooBar - that just appends "fooBar " to whatever's passed in. He also talks about some of the default view helpers (like form fields), partials, the doctype() helper, capturing/caching content to be used later and the use of placeholders.

tagged with: zendframework view helper form partial doctype capture placeholder


PHPBuilder.com:
PHP Form Validation System An Object-Oriented Approach
0 comments :: posted Monday April 21, 2008 @ 08:49:24
voice your opinion now!

Mike Weiner has put together an article for PHPBuilder.com that's posted today showing a bit more object-oriented solution to validating the user submitted data in your forms:

Whether it is for database submission, emailing, or for some other purpose, forms represent the primary means of enabling a user to send data to an application. As a result, it is important to have control over the data collected by your forms, which will aid in the creation of streamlined, error-free applications.

He lays out the validation method in a graphic going with a generic validation class that then calls the various validation methods (like phone or email) as needed. The "validation set" manages which validations are to be run on which form elements. Example code for each of the bits making up the structure and the implementation are provided.

tagged with: object oriented approach form validation tutorial

WebReference.com:
Working With Forms
0 comments :: posted Monday March 31, 2008 @ 10:25:11
voice your opinion now!

The WebReference.com website has an introductory tutorial showing the budding PHP develper how to get started with one of the keys to web application interaction - forms.

Forms are how your users talk to your scripts. To get the most out of PHP, you must master forms. The first thing you need to understand is that although PHP makes it easy to access form data, you must be careful of how you work with the data.

The first part of the tutorial is focused on something many applications don't worry about - the security and integrity of the data submitted to them. They talk about things like filtering and various other checks to ensure that the data you're getting is good. They also mention the method for putting submitted values into PHP arrays, checking for valid values, using multiple submit buttons and an example of some of these methods all put together - validating a credit card number.

tagged with: tutorial input form application validate security

DevShed:
Building File Uploaders with PHP 5
0 comments :: posted Thursday March 20, 2008 @ 11:18:11
voice your opinion now!

On DevShed today there's a new tutorial showing how to build file upload functionality into your scripts.

If you're a PHP developer who has built a certain number of web applications, then it's quite probable that you've already worked with HTTP file uploads. [...] First I'm going to teach you how to handle file uploads using a procedural approach, and then, with the topic well underway, by way of the object-oriented paradigm.

The introduce the beginners out there to the $_FILES array (a superglobal) that contains the details about the file(s) that have been submitted. Next comes the construction of a simple form and how to handle the submission on the PHP side.

tagged with: file upload php5 tutorial beginner files superglobal form

Tiffany Brown's Blog:
Turn text files into pull down menus
0 comments :: posted Wednesday February 27, 2008 @ 09:35:00
voice your opinion now!

Tiffany Brown shares a quick function she whipped up to create dropdown menus from the contents of a newline separated text file (or files).

I developed this PHP function for a project I'm working on. I'm posting it here in case I need it again, or in case you find it handy.

The function turns each line into an option tag making defining custom menus based on the contents of dynamically-given text files easy.

This could also be easily adapted to create navigations menus at the top of your pages with a few modifications to the HTML tags being used and some CSS to change the look of the list.

tagged with: text file dropdown menu form element navigation css

DevX.com:
Four Ways to Transfer Data Between Flash and PHP
0 comments :: posted Tuesday February 05, 2008 @ 12:58:00
voice your opinion now!

The DevX.com site has posted some code that gives you methods for passing information back and forth between PHP and a Flash application.

When you need to develop a web form with a special design and great effects, you will probably elect to use Flash. But building and programming Flash forms is considerably different from building standard HTML-based forms. [...] To do that though, you need to know how to access data in the Flash form and (sometimes) how to update the Flash form from PHP as well.

They help you build a sample Flash form as a base to work with in the transfer methods including the ActionScript to get the data out of each field. The tutorial shows the two way communication that's possible - pushing the Flash values out to the PHP script via a getURL() call and pulling the results back in with a call to loadVars() from the PHP script's output.

tagged with: data transfer flash application form script backend loadvars geturl

Zend Developer Zone:
Generating and Validating Web Forms With PEAR HTML_QuickForm (part 2)
0 comments :: posted Tuesday January 22, 2008 @ 07:57:00
voice your opinion now!

The Zend Developer Zone has released part two of a series (here's part one posted back in November) looking at making forms for your website with the help of the PEAR HTML_QuickForm class.

I'll be discussing some of the package's non-standard form elements, teaching you how to combine elements into groups, showing you how to apply templates to control a form's appearance, and guiding you through the process of writing and registering your own custom validation rules.

There's plenty of sample code and screenshots to go around in this second part including examples of form auto-completion, multi-select elements and and example of its integration with Smarty.

tagged with: form generate validate pear htmlquickform series

Paul Gregg's Blog:
Want to try out the next major version of Delphi for PHP?
0 comments :: posted Thursday December 20, 2007 @ 12:58:00
voice your opinion now!

Want to try out the next major version of Delphi for PHP? Paul Gregg is looking for volunteers to be testers for the latest version of this CodeGear project.

CodeGear is looking for additional beta testers for the next major version of Delphi for PHP.

Those interested should check out this page and fill in the application to become a tester (just name, email address, experience using PHP tools and how much time you could devote to testing).

tagged with: delphi codegear tester product application form delphi codegear tester product application form


security package database framework conference developer releases cakephp application job pecl PEAR code book release mysql ajax zendframework zend PHP5

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework