Narrative:

After liftoff of runway 8R, first officer became confused on departure procedure. First officer drifted north of course. Instructed first officer to correct to the right. I took control of aircraft and was making correction when tower asked if we were proceeding via the st johns departure. As I was already in a right turn, we responded we were correcting.

Google
 

Original NASA ASRS Text

Title: AN ACR MLG FO DOES NOT FOLLOW THE INITIAL HDG ON THE DEP PROC AFTER DEP PHX ARPT. CAPT CORRECTS THE ACFT'S HDG AS ATC INTERVENES.

Narrative: AFTER LIFTOFF OF RWY 8R, FO BECAME CONFUSED ON DEP PROC. FO DRIFTED N OF COURSE. INSTRUCTED FO TO CORRECT TO THE R. I TOOK CTL OF ACFT AND WAS MAKING CORRECTION WHEN TWR ASKED IF WE WERE PROCEEDING VIA THE ST JOHNS DEP. AS I WAS ALREADY IN A R TURN, WE RESPONDED WE WERE CORRECTING.

Data retrieved from NASA's ASRS site as of July 2007 and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.