STEP no.1 (and most important): SECURITY! (if you intend to put the script on the public Internet).
Think from the start how to make your code secure (from DOS attacks and garbage feeding to machine takeover). I believe this is the hardest task. I'm already scared.
Comment on Re: Help with updating HTML from drop down menu's please!