I have to strip out apostrophes (') and this solved my filename problem. But now the user isn't redirected to the correct page upon insert complete ($WA_redirectURL = "thanks.php";). The same form page just reloads even though the data is being captured and the filenames are rewritten correctly. Please help!