A programmer's paradise created by the twist of deliberated fantasies, and actions of a determined imagination.
Follow ME:
Cheap and affordable: Cloud Webhosting for only Php.500.00 monthly. Unlimited webspace and Bandwidth. Contact ME at tuso@programmerspride.com to avail a service.

Add to Google
Batch-After-Batch Multi Uploader (FLASH)
The normal way of browsing files and uploading them. You can select multiple files from a single directory browsing. If you have browsed a f ...

The JavaScript's parseInt() function with decimal numbers

When performing mathematical operations to decimal numbers, don't forget to validate the User input by the use of parseInt().

The syntax is parseInt(string, radix);

The second argument is optional, however in decimal this is very important. Forgetting to set the radix to base 10 won't correctly convert '08' to 8 and '09' to 9.

<script text="text/javascript">

var string = '08';
parseInt(string, 10);