Date input fields

Supported by some HTML5 browsers which will display a date picker datetime db field from date picker When handling form submission In the form

Read More

Refresh after form POST

This is a solution to the problem of pressing refresh after posting a form causing a "resubmit form information message box" for the user.  This simply causes the page to reload and can be placed after handling the POST actions if ( isset($_POST[‘action’])) { //—– AFTER ANY POST RELOAD THE PAGE SO REFRESH CAN BE USED —– […]

Read More

Checkbox

Checkbox Example Handling in PHP Checkboxes with an array of values Get the submitted as an array Get the values as a comma separated string Styling Checkboxes https://www.w3schools.com/howto/howto_css_custom_checkbox.asp Greyed out, non-editable Just non-editable

Read More

TextArea

Note – for single line test use <input type=”text” not textarea! Max length Background text Text that vanished when you start typing into the box

Read More

.Form General

Simple form: Submit to same page, see here onSubmit E.g. onSubmit=”return capCheck(this);” means call the javascript function called capCheck PHP Handle Form

Read More

Select Box

Causing Form To Submit OnChange Loading With Selected Setting From PHP – Using an array Loading With Selected Setting From PHP – Using find and replace on a string Doing specific things Get selected item text

Read More