Browse a Listing
Top > PHP > Tips and Tutorials > Form Processing
Popular Tags
Free Script links
1. Use $_SERVER['PHP_SELF'] as a form action.
The $_SERVER auto-global array holds various useful server- and request-specific info. The PHP_SELF element of $_SERVER holds the filename of the currently executing script (relative to your web site's document root directory). So, supplying $_SERVER['PHP_SELF'] as the action attribute of the form tag makes the form submit to the same page that displayed it. This lets you put the logic to handle the form in the same page as the logic that displays it. For many simple forms, this keeps things easy to manage.
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Oct 15, 2006 Hits: 8 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR
Many sites allow users to upload files through an HTML form. While there are many security issues that should be addressed before allowing file uploads, the actual mechanisms to allow this are fairly easy
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Oct 15, 2006 Hits: 5 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR
If you've been on the web at all, you've gone through multipart forms, where you fill out, let's say, section one, click submit, and fill in section two, etc.. This makes sense from dividing the forms into chunks, controlling the amount of information received, and also for verfication. If we want the user to set up an account with us, we might want to make sure that the username and password they select are unique before we have them fill out much else.
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Oct 15, 2006 Hits: 5 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR
Member Reviews
Visitor Ratings
Google PR
Client side form validation usually done with javascript. Client side validation makes your web application respond 'faster' while server side form validation with PHP can act as a backup just in case the user switch off javascript support on her browser. And since different browsers can behave differently there is always a possibility that the browser didn't execute the javascript code as you intended.
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Oct 15, 2006 Hits: 2 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR
This is a simple tutorial that explains how to make a form in PHP. Forms can be used in many different ways on your web page. It is almost impossible to find a webpage today that does not utilize some type of form.
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Oct 15, 2006 Hits: 6 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR
Extracting form variables when programming in Perl is a real task. The variables can be extracted fairly painlessly using the CGI.pm modules, but there is a lot of work going on under the hood. In PHP form variables just spring to life. If a form has an input statement.
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Oct 15, 2006 Hits: 7 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR
This week I'll take an introductory look at one of the most fundamental uses of PHP 4 -- form processing. Although the code you'll be working with this week was written explicitly for this column, it was inspired by RLYNCH and their code fragment "Required".
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Oct 15, 2006 Hits: 4 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR
In the last exciting episode of the PHP Phanatics, we explored the inner workings of PHP's unique $GLOBALS array. Several sharp-eyed readers pointed out a bug in the script dumping the contents of the $GLOBALS array. If an array element was itself an array, the display listed that fact rather than the contents of the component array. The displayed line looked like:
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Oct 15, 2006 Hits: 7 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR
In the last article, the Phanatic was leading an expedition into a largely uncharted area. The conceptual project was a generalized form handler. The task's starting point was Matt Wright's famous "formmail" and included adding many more bells and whistles. While putting together the last tome, time and space were closing in on us, and in an effort not to strain the Phanatic's rapidly aging brain, we pulled into shore for a rest. Let's review the project's design goals before setting out to sea again.
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Oct 15, 2006 Hits: 0 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR