School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!
Welcome to Dream.In.Code
Become an Expert!

Join 306,960 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,891 people online right now. Registration is fast and FREE... Join Now!



's Contributions
Below are the tutorials, code snippets, and resources has submitted to dream.in.code. For more information on Kudos and contributing to dream.in.code visit: http://home.dreamincode.net/?p=about#kudos.
Tutorials
Validating forms with PHP in PHP Tutorials (Last Comment: spearfish, Views: 5,440)
Code Snippets
Submitted: April 2, 2008        Views: 699
This will instantly convert a temperature on one scale into it's equivalents on the other scales, using an onChange handler. It's formatted into an HTML document currently, rip out the parts and place them were you want in your own page.
Submitted: April 20, 2008        Views: 1124
Greet somebody based on the day of the week
Submitted: April 1, 2008        Views: 3122
Roll dice using the mt_rand feature of PHP. I took the liberty of formatting this into a nice HTML document, largely for making sure it worked. Feel free to rip it apart and take whatever you need.
Submitted: April 11, 2008        Views: 981
Convert a temperature between all three scales - Fahrenheit, Celcius, and Kelvin.
Link Randomizer in JavaScript by spearfish
Submitted: April 2, 2008        Views: 1505
Displays a random link (or image, or paragraph, or anything from that matter!) on a web page.
Submitted: September 24, 2008        Views: 319
Useful for salt, validation codes, preset passwords, etc.
Submitted: April 1, 2008        Views: 1182
Will clear the default value of a form field, but not any user input. For example, if the default value of a text input field is "Enter your username" with an onclick event to clear that, should the user enter half their username and click back onto that field, the first half is lost. Using this, it won't. Please PM me any questions which I will clear up via comments on this snippet. This has been tested. -Spear