Another Horrible Code Example but this time in PHP

6. April 2009

Ok so whoever was in charge of the QA and whoever this person's lead was needs some help.  This link was provided to me by my buddy Quintin.

http://www.space.com/php/multimedia/imagedisplay/img_display.php?pic=090404-chandra-nebula-02.jpg&cap=Red+represents+low-energy+X-rays%2C+the+medium+range+is+green%2C+and+the+most+energetic+ones+are+colored+blue.+The+blue+hand-like+structure+was+created+by+energy+emanating+from+the+nebula+around+they+dying+star+PSR+B1509-58.+The+red+areas+are+from+a+neighboring+gas+cloud+called+RCW+89.+Credit%3A+NASA%2FCXC%2FSAO%2FP.Slane%2C+et+al.

Ok so now go ahead and open the link and change whatever the heck you would like for the caption to say because these great guys decided to store the caption in the query string.  I would have probably stored it somewhere else just because I'm not a fan of query strings, but hey whatever.  So change it and have fun with your friends. For example

http://www.space.com/php/multimedia/imagedisplay/img_display.php?pic=090404-chandra-nebula-02.jpg&cap=why%20store%20this%20in%20the%20query%20string.%20this%20is%20the%20coolest%20thing%20I've%20seen

So again, an example of what not to do. Enjoy people :)

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

General

blog comments powered by Disqus