If you're not in Spain too long just apply in UK. Once issued it has a valid to use by date of up to 3 months. When you enter thailand, the visa is activated.
I thought you were on the other Thai page. Ever heard of someone reading quickly when using both pages and making a mistake? Jeez. Relax it's not a big deal.