When I was writing my [intlink id=”1578″ type=”page”]Effortless E-Commerce with PHP and MySQL[/intlink] book, I naturally did a bunch of research, particularly with regards to the various laws that apply. Understanding the programming behind an e-commerce site is relatively simple; understanding all the applicable laws and implications of doing e-commerce is complex. One of the sites I found to be quite useful was the U.S. Better Business Bureau (BBB).

I’m currently going through some items in my “to read” folder, and am reading, or perhaps re-reading, the Better Business Bureau’s PDF titled “Security & Privacy – Made Simpler“. If you do any e-commerce, or even just Web development, it’s worth reading. It’s a 22-page document that discusses almost every facet of e-commerce, such as:

  • Developing a security and privacy plan
  • Creating and communicating your security and privacy policies
  • Good employee screening and policies
  • Common hack/theft strategies
  • General Internet security
  • Proper handling of customer data
  • Payment processing
  • What to do in the event of a data breach
  • A preview of international e-commerce considerations

The document also has many resources listed in these and other categories. You can download the PDF from that page, but there are also related FAQs and more on the BBB’s site.

Finding Book Bonus Content

December 20, 2011

For many of my books, bonus content is made available through the publisher. Sometimes this is material that was intended for the book but had to be cut, such as an appendix or a chapter, and sometimes the material is a true bonus, such as a video screencast. Because it’s not clear for everyone how to access this bonus material, I thought I’d quickly post instructions here.

  1. Head to Peachpit.com (almost all of my books are published by Peachpit Press)
  2. Click on Account Sign In at the top of the page.
  3. If you don’t already have an account with Peachpit.com, click the Create a new one… link to register.
  4. After you have registered, login.
  5. On your account page (after logging in), click Registered Products.
  6. On the Registered Products tab, click Register Another Product.
  7. Follow the instructions to register the book.
  8. Return to the Registered Products page.
  9. For the book in question, click the Access Bonus Content link. That will take you to a page with all the bonus content for a given book.

Besides being able to access bonus content, there are other benefits to registering at Peachpit’s site. And while you’re there, you can also check out my author page, which lists the books I’ve written for Peachpit, the articles I’ve published there, and the blog postings I’ve published there. Both the articles and blog postings are viewable without registration or logging in.

I hope that helps anyone having trouble finding the material they’re looking for.

It was recently pointed out to me by a couple of readers that they found my explanation for how to read the PHP manual, presented in Chapter 1 of my “PHP for the Web: Visual QuickStart Guide”, to be confusing. I think that learning how to read the manual is quite important, but I can see now that my presentation of that subject was a bit much at that early stage of the game, at least for absolute beginners. In any case, in that discussion, someone shared a link to a page in the PHP manual titled “How to Read a Function Definition“, which they found to be useful. So I thought I’d share it here!

In this edition…

Continue Reading…

I last posted an update on my forthcoming JavaScript book, Modern JavaScript: Develop and Design, just over two months ago, so it’s high time I posted another update. Of course, I’ve been working so hard on the book that I haven’t done a very good job of putting out regular, good blog posts in the interim. Still, here’s where things stand…

The good news is that I just submitted the first draft of Chapter 10, “Working with Forms.” Although forms have been used to some degree since Chapter 2, “JavaScript in Action,” this chapter rounds out the knowledge of forms with respect to JavaScript. The chapter worked out much like a “recipe” type of chapter, with discussions of common tasks plus specific code for performing that task. Some of the examples are:

  • Inline error messages
  • Tooltips
  • Creating a master checkbox (that toggles a group of other checkboxes)
  • Linked select menus
  • Enabling/disabling submit buttons

The chapter also covers regular expressions, with a focus on validation. Because  regular expressions are complicated, and there’s already a lot of material in the book, I tried to keep the coverage as accessible as possible, without going into too much high-end stuff. The chapter ends with a good and realistic form validation example that combines most of the above.

Before Chapter 10, I finished Chapter 9, “JavaScript and the Browser,” and Chapter 8, “Event Handling”. Chapter 9 in particular was quite long. But now that I’ve covered events in detail, plus DOM manipulation, CSS interactions, and so forth, the possibilities have greatly expanded when it comes to what examples I can use, which makes writing the book easier and more rewarding. By this point in the book, the reader has also created a couple of mini-libraries that make things like event handler registration easy and cross-browser compliant. The book is continuing to emphasize–and demonstrate–progressive enhancement along the way.

I’ve also done the rewrites on the first four chapters and have seen the PDF layouts for the first two. This is my first full-color book and it looks great. Unfortunately, as seems to always happen with me, the page counts are coming back quite high. Between that and how grossly behind schedule I am, I’ll have to make some decisions as to what to keep in Part 3 of the book. Part 2 of the book, which is the meat, has two more chapters remaining: Ajax (Chapter 11) and Debugging and Error Handling (12). Part 3 of the book will definitely have one chapter on frameworks and another on advanced JavaScript programming. There will be at least one more chapter, but I’m not sure what that will be. Possible candidates are:

  • HTML5
  • Mobile Development
  • An example chapter of PHP and JavaScript

I’ve already decided not to do the server-side JavaScript chapter, as I don’t think that many people are doing server-side JavaScript yet, at least not among those that would be reading this book.

As always, if there’s not space to put something in the book, I’ll probably end up writing about those subjects here, or as articles elsewhere (so you’ll still get all the important content, you just won’t have to pay for it).

So that’s where things stand. Thanks to everyone for their interest in the book. Now I’m off to write Chapter 11!