Narrative:

I was unsure of my exact location when contacting lakeland airport. The tower advised me to contact a frequency I believe to be controled by tampa. Tampa gave me a squawk code and told me my position from lakeland airport. After leaving lakeland airspace in direct route to melbourne I realized I still had the squawk code tampa had given me in my transponder. I then accidently squawked 7700 instead of 1700 for VFR flight. I was not aware of this until I contacted melbourne tower. I am a student pilot.

Google
 

Original NASA ASRS Text

Title: AFTER RECEIVING POS FIX FROM TRACON AND CHANGING TRANSPONDER CODE, STUDENT PLT INADVERTENTLY SQUAWKED 7700 INSTEAD OF 1200.

Narrative: I WAS UNSURE OF MY EXACT LOCATION WHEN CONTACTING LAKELAND ARPT. THE TWR ADVISED ME TO CONTACT A FREQ I BELIEVE TO BE CTLED BY TAMPA. TAMPA GAVE ME A SQUAWK CODE AND TOLD ME MY POS FROM LAKELAND ARPT. AFTER LEAVING LAKELAND AIRSPACE IN DIRECT RTE TO MELBOURNE I REALIZED I STILL HAD THE SQUAWK CODE TAMPA HAD GIVEN ME IN MY TRANSPONDER. I THEN ACCIDENTLY SQUAWKED 7700 INSTEAD OF 1700 FOR VFR FLT. I WAS NOT AWARE OF THIS UNTIL I CONTACTED MELBOURNE TWR. I AM A STUDENT PLT.

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.