Showing posts with label HTML. Show all posts
Showing posts with label HTML. Show all posts

Friday, March 5, 2010

Free HTML templates

I've been using some HTML templates I downloaded from this site:

http://www.interspire.com/

What I like the most is that they look very professional and they're simple at the same time. Re-using the design in your code is very easy and fast.

The only requisite is to keep the "Copyright" text at the bottom, which includes a link to their site.

Here are a couple of examples of the use I gave to their templates:
Education: http://www.sm-iete-bolivia.org
Automotive: http://www.servicioautomotrizmonza.com
(websites in Spanish)

Friday, December 5, 2008

Books I recommend

PHP & MySQL
  • Beginning PHP5 and MySQL5 - From Novice to Professional-2e-2006-APress
  • Professional Ajax Php
  • Professional LAMP - Linux, Apache, MySQL, & PHP5 Web Development (2006)
Javascript
  • Javascript Bible 4th Edition
  • O'reilly - Javascript - The Definitive Guide, 4th Edition
Ajax


HTML, XML and others -ML
  • OReilly XML Pocket Reference 2nd

Class Form

If there is something I "hate" of Web programming with PHP, is the constant mix of HTML with PHP and Javascrip when I have to build a screen.

I start putting the HTML code for the form (text, checkboxes, combos, buttons, etc.). Then I insert the PHP code to set initial values in the fields that -most of the time- come from the DB.

Then I plug all the possible validations I can do on the files using Javascript, such as empty files, numbers, dates, etc.

All this is very repetitive and BORING!

So, in other effort to reduce time programming the same over and over again, I created the class "Form" which:
- Has one method that builds any field you need in your form based on the arguments you pass.
- Sets all the default values for those arguments you don't pass (most of the arguments are optional).
- Builds forms with a uniform look and feel.
- Validates the inputs based on the fields you mark as "mandatory" (argument of the main method).
- Restricts the inputs to numbers if indicated.

This is saving me HOURS of development.

//Put the code here...

Cool web templates

Easy to use and nice - but simple - look, I love this site:

http://www.myfreetemplates.com/