Archive for the 'php' Category

Your Ad Here

Simplified PHP $_POST data handling

When posting data from a form to a page, the $_POST variable gets set to an array similar to this:
Array ([name] => “daniel”, [state] => “illinois”, [phone] => “630-618-9588″)
Now, one way to process this is to know in advance (which, normally you will), what the values will be, and set them to more usable variables. [...]

Pagination PHP script

Here is a nice, simple way to add pagination to a site with many items using PHP. This code will allow you to display your content normally, or automatically create pagination if the content exceeds a set number of items. This code is provided as is, with no warranty, but can be modified to your [...]

AJAX Contact form

I did some searching online for a quick and easy AJAX contact form… There isn’t one. The free ones are two years old and don’t work, and the other ones I saw cost money. So I fixed the problem.
Unzip to your directory, modify the two variables in “config.php” to your liking and voila.
Download (ver 1.01): [...]

Streamlining development

Time management is key in any business position, whether you are a receptionist for a law firm, or a sole-proprietor in a web development company. I’m going to assume that as a constant in any business discussion. There have been hundreds (thousands?) of books written on the topic, and I won’t try to reinvent the [...]

Easy CSS/php default image

In the process of developing an e commerce shopping cart, I had the need to make sure an image was displayed at all times… even if the link is broken for some reason. This easy solution will make sure that your large detail view image is loaded last… thus making your site appear that it [...]