Jump to content

button


Developer17
 Share

Recommended Posts

Olá boa tarde. Tenho aqui uma dúvida.

Na minha página eu criei os seguintes botão:

<input type="button" name="selecao" value="Ficha" onclick="mostrarFicha()"/><br>
<input type="button" name="selecao" value="Helpdesk" onclick="mostrarHelpdesk()"/>

Agora queria receber o valor escolhido do botão para uma variável para poder gravá-lo na BD. No resto estou a fazer com php, por exempo, o meu radio button gravei desta forma:

if(isset($_POST['submit'])){
$tipo = $_POST['tipo'];
}

já tentei fazer da mesma forma para o button mas não dá

Edited by apocsantos
geshi
Link to comment
Share on other sites

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
 Share

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