In America, yogurt is the usual spelling, whereas yoghurt is a variant spelling common in British English and India. Both are correct since the two spellings are used in the same context.