I understand what you are saying Weedpacket, and it's alot better/safer to have it your way. But however I'm not sure how to really write it, I checked the manual but I'm a beginner to this and didn't really understand a lot.
So if you could help me out some more, maybe write the whole line that replaces the characters I would be most grateful.
This is how I solved the problem temporarily, but as I'd said I'd rather have it your way.
$teaminput = $_POST['team'];
$teaminput = str_replace("a", "", $teaminput);
$teaminput = str_replace("A", "", $teaminput);
$teaminput = str_replace("o", "%", $teaminput);
$teaminput = str_replace("O", "%", $teaminput);
$teaminput = str_replace("'", "", $teaminput);
$teaminput = str_replace("\"", "", $teaminput);
$teaminput = str_replace("*", "%",$teaminput);