sizo Posted September 21, 2005 at 09:45 AM Report #5317 Posted September 21, 2005 at 09:45 AM boas é o seguinte... ja tenho o codigo feito mas tou com 1 problema no form eu fiz um form com os seguintes parametros <form method=post name=registo action="./index.asp?acao="novo"> e mais para baixo tenho o "novo" <% If acao ="novo" Then instDB.Execute "INSERT INTO Assistencias (Numero, [Numero da Assistencia]) VALUES ('900','800')" end if %> eu keria k kuando carrega-se no submit ele abri-se a mesma pagina e corre-se a acao "novo", mas ele está a correr essa accao antes de eu carregar no submit. :?
Anonym Posted August 9, 2006 at 01:40 PM Report #43266 Posted August 9, 2006 at 01:40 PM faz assim, usa um request.QueryString algo do género, no teu form metes method=get. depois metes, acao=request.QueryString("acao") if acao="novo" then.... se não funcionar avisa....
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now