Same Page Form Feedback in Fashion With Perl

Google+ Pinterest LinkedIn Tumblr +

In life things come and go out of fashion. You know that very well with clothes. The same thing happens in website design, but it may not be apparent to the ordinary Internet user. One of the things that have been in fashion in website design is Same Page Form Feedback. I explain what that means below. You can do it with Perl, PHP or ECMAScript. In this article, I introduce you to a tutorial on Same Page Form Feedback with Perl.

The Obvious Way to produce Feedback for an HTML Form
Consider a situation, where a user fills a form and clicks the Submit button. The data of the form is sent to the server. At the Server a script (today with Perl) validates one form field, prepares the feedback data into a web page and send back to the browser. At the browser, the user sees the feedback as a new page.

Problem with the Obvious Approach
In an HTML Form, about 5 fields may need feedback. This means that about 5 new pages might be created in a user session. It is not very convenient for a user to see five new pages each with a short correction (error) message. One solution is to send all the feedback correction messages in one new page. Some websites do that. The user will then click the Back button of the browser to go and correct the error fields.

Conventional Solution
It is more convenient for the user to see all his error or correction messages at the top of the same form, so that he can retype the field values in one sweep. This is what many websites do. This is acceptable by everyone and nobody questions it. That is OK.

Same Page Form Feedback in Fashion
The fashionable way to do that today is to send the feedback correction or error message of each field just above the top of the field. The message for each field is in a conspicuous color (e.g. red).

I have already prepared a tutorial that explains how to produce Same Page Form Feedback in Fashion with Perl. The tutorial has been written in a step-by-step fashion. The code samples are well formatted with good indentation, making readability very easy. There is no missing special character, as you would find in other sites. The links to the different parts of the series are easily accessible. Click the following link to start the tutorial:



About Author

Leave A Reply