News & Blog

PHP date() Function Showing Date from 1970

December 30th, 2010 - Posted by Steve Marks to PHP, Web Development.
I’ve lost count of the amount of times I’ve used the PHP date() function and wondered why it’s returning a date from 1970 so I wanted to share with you the most common reason/mistake I’ve found for causing this in the event that you are facing the same problem. The ...

Disabling the Submit Button to Prevent Double Form Submission

December 21st, 2010 - Posted by Steve Marks to Javascript / jQuery, Web Development.
Whether it be due to a users lack of tech know-how or a twitch of the finger, a secondary click of a forms ‘Submit’ button could result in the form being submitted twice. Depending on the action of the form this could in turn send two enquiries, create two orders or insert a re...