Jump to content

Recommended Posts

Posted

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.

:?

  • 10 months later...
Posted

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....

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.