Look your pills up before you take them.
Dancesafe
Ecstasy Data
Good ecstasy contains MDMA, though there are various other MDxx chemicals( such as MDA or MDE that some people prefer) which are similar to MDMA in chemical structure and effect.

Also check on pillreports.com

Erowid MDMA Vault