Posts Tagged ‘PHP’

How to Make Sticky Form Fields with PHP

Posted on: September 7th, 2015 by BuildMyWeb No Comments

Sticky Form Fields refers to having field Values populate in their respective fields in a form once submitted. So a user does not have to re-type the data if there is an error and the user is asked to correct a field(s). Sticky Forms with PHP SESSIONs The way I go about it is to [Read More…]

What is phpinfo()?

Posted on: August 14th, 2015 by BuildMyWeb 1 Comment

If you are going to be programming PHP logic into your websites and web applications, you will eventually find a use for phpinfo(). It is a function that outputs a large amount of data on the state of php as it is installed on your server. PHP extensions, the PHP version, paths, server configuration options, [Read More…]

How to Detect a Browser Refresh with PHP

Posted on: August 13th, 2015 by BuildMyWeb No Comments

There has been many a time where I’ve needed to detect a user refreshing their browser within a web application. Here is a really simple solution that has worked for me in Firefox, Chrome, Safari, but of course not in good ol’ reliable (cough, cough) Internet Explorer. The bane of all developers since it’s inception. [Read More…]

How To Upload and Resize an Image with PHP

Posted on: August 12th, 2015 by BuildMyWeb No Comments

Upload an Image to Your Server with PHP You can relatively easily upload images to your web host using an HTML form and a PHP script handler. The key ingredient is to include the following within your form element: enctype=”multipart/form-data”. And, of course, you will need the proper input that allows users to select and [Read More…]

PHP Function str_getcsv() not working

Posted on: July 19th, 2015 by BuildMyWeb No Comments

It is a common practice to develop new sites or significant changes to an existing website on a development server. You do your rockstar work, follow it up with some stellar testing and debugging, and then,… when completely satisfied with your results,… you publish your new files to your production server. And voila! Something breaks [Read More…]