Jump to content
Fórum Script Brasil
  • 0

Pegar no post de um formulario campo que não está no mesmo.


o0mega

Question

Bom dia galera, eu tenho o seguinte script:

<td width="25%" align="center"><form name="form1" method="post" action="../cadcategoria.php">
              <input name="cadastrar" type="submit" id="cadastrar" value="Cadastrar">
            </form></td>
            <td width="21%" align="center">[color="#48D1CC"]<form name="form2" method="post" action="../alterar/altera_categoria.php" >
              <input name="Alterar" type="submit" id="Alterar" value="Alterar" >
            </form>[/color]
            </td>
            <td width="23%" align="center"><form name="form3" method="post" action="">
              <input name="Excluir" type="submit" id="Excluir" value="Excluir">
            </form></td>
e abaixo tenho os campos:
<td align="center"><?php echo $linhas->CodCategoria;?>&nbsp;</td>
    <td align="center"><?php echo $linhas->Categoria;?>&nbsp;</td>
        <td align="center">
            [color="#9ACD32"]<input name="select" type="checkbox" id="select" value="<?php echo $linhas->CodCategoria;?>" />
            <label for="checkbox"></label>[/color]
          </td>

Eu queria que quando clicar no botao do form em azul lá em cima, ele pega-se o value no checkBox marcado. Mas como ele está fora do form não sei como fazer.

Obrigadoo a todos.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...