I just was thinking that the original poster's problem is likely due to copying & pasting code. I don't think it has anything to do with PC or Mac. It may be problem common to Dreamweaver, any time you copy & paste code from either the Web or computer book in PDF form, there is a chance of hidden symbols being introduced in the code.
I use a Mac and BBEdit to code all my PHP/HTML. If I copy/paste an example, I have to do a 'select all' and BBEdit has a great feature called 'Zap Gremlins' before the code will run without errors. Those damn Gremlins will get you every time.
Great Forum.
Generating random unique numbers
Moderator: General Moderators