If your stay in Spain involving any sort of studying for longer than 90 days at a time, you will need a student visa. If your study stay is less than 90 days, you should apply for a Schengen Tourism Visa link to section above.