- Posts Tagged ‘form’

Great Post: Float Labels with CSS

Here is a great post on CSS Tricks about new design trick with label and Input field. The design look neat and cool. It is saving of space without being cluttered. Label is mixed with Input field as it seems. New Design Tricks on Roll: Labeling input field On CSS-Tricks,… (Continue)

Display Message for Short Duration

This is another post in beginners series. Suppose you want to dispaly dynamic message after form submit for short duration. You want the massage to dissapper after some time. User can have option to hide it if he wants also. How you will do it? Here is a example script… (Continue)

Avoid Form Resubmit on Refresh/reload

All of us write a PHP script where script submit the form and data need to put on database or in some file. This is a very important step we learn when we start doing programming in PHP. After everything went correct you may has faced the problem of resubmitting… (Continue)

JavaScript: Displaying Message after a Action, say Form Submit

You need to display a message after any action to confirm about successful completion of the action or for some error. Suppose user has submitted a web form and you got everything fine. So in PHP you have this script: <?php if (count($_POST)) { // checking / validation etc //… (Continue)

Change Form Action and Method attributes

In case you want your form action value changed based on certain condition then you can do this using simple JavaScript. In this way you can submit your single form to any of your scripts based on condition. Here you will also find tricks for changing the method attribute of… (Continue)

Submitting two Forms at Once

This is the general problem fresher struck in form submission. They struck in some logical problem and try to find their solution in submitting two forms in a web page at same time. But answer to this question is simple. You cannot do this in general. You can change action… (Continue)

Check, Uncheck All Checkboxes

This is very common for us providing user list of choices and let them select their preferences from given choices. This kind of script is also needed in admin side for update and delete records. Here I am providing JavaScript for doing check all/ Uncheck all and validation script after… (Continue)