The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Here's another line with a syntax error - no closing double quotes. Note that I could tell there was a problem with that line - because the colour coding is all wrong in the lines under it (which hinted that a string had not been closed properly).

Thats a pretty lame way of looking at things. I would say its better to learn how something works than to just make it work and hope it doesn't break, so what, when it breaks again you will have to ask again, why not learn how it works first then write the script. I am sure most people who post here would rather know that their valuable time teaching you these concepts will help you to do these things on your own. If all people were doing was fixing your hacked up scripts all day long don't you think it would get kind of old.

I suggest you learn the basics before trying to write as complex a script as your example. I suggest you start with control structures such as if {} else {} and variable usage.

Please don't PM me with questions.
Use the forums, that is what they are here for.