To automatically set the focus to a specific control when the page loads use autofocus, e.g.
All posts by
$_SESSION General
Do sessions use cookies? It is possible to use PHP sessions without a cookie by adding the session ID to url’s, however by default it is done by a single cookie being stored with a unique session ID. The server stores the actual session values, the users browser stores their unique ID for the server […]
$_SESSION in wordpress
Enabling $_SESSION
HTML Forms Update Database
INSERT from and HTML form
Text field used to store limited number of old events
Event Logging Table
A table used to store recent special events so db admins can see whats happening for instance. Add event to table
postcodes.io
https://postcodes.io/ Free open source Postcode & Geolocation API for the UK
$wpdb
https://codex.wordpress.org/Class_Reference/wpdb
UPDATE
Simple Update If you need to know whether UPDATE was successful If you need to know how many rows were affected Update From Row + Value Array
$wpdb->prepare
It’s best practice to always use ->prepare to prevent against SQL injection attacks via user supplied data. This is simply a string checker function, string in > string out with variables added as it works. You only need to use it for values you have obtained from somewhere else. You should NOT use it for […]