Scusami, ma non ho capito cosa intenda. Il codice lo dovresti eseguire prima del submit.