Elevated garden beds are a good solution for plant drainage and compacting of the soil; plants will grow much better because of these facts. Raised beds will warm up faster in the springtime and continue to stay warm longer in the fall which means you can have a longer growing season.
Then, determine what you would like to use for the anchors. If you built your garden bed out of lumber, you could use nails as anchors, spacing each nail the appropriate distance as determined by the results of the calculation in Step 1 above. If your garden bed is made out of a composite material (part wood waste, part plastic), I recommend using an anchor placed on the outside of the bed. Since my beds are 6 inches high, I used 12 inch metal spikes I bought from the local hardware store, pounding them into the soil directly on the outside of the garden bed.
I wish somebody would build a Square Foot Gardening grid that you can insert into a raised garden bed to mark off squares, but until this is available, if you want to use the Square Foot Gardening method, you will need to devise your own method for marking off squares.
A 4x4 foot garden bed, for example, will have 16 planting squares (because there are 16 square feet in a 4x4 bed). A 4x8 foot garden bed will have 32 planting squares.