So Sorcerors have a limited spell list and you are given the option to forget a spell you don't like and exchange it for another when you level up.
This is to make up for not being able to have a big list of spells to pick from every day like wizards can.
The first screen was your standard learn new spells for your level, and the second was the forget spells you don't like and learn something else one.
Sounds like you picked your spell, then immediately exchanged it on the next screen?
Don't worry about it, eventually you'll meet a character who can let you respec your character. Just going through the level ups again will let you pick the spells you want.