Jump to content
Fórum Script Brasil
  • 0

Posicionamento de Button com código PHP


Renê Ribeiro Mendes

Question

Bom Dia,

Tenho o código abaixo....e preciso posicionar o BUTTON ao final da tabela, como faço?Pois da forma abaixo está exibindo no inicio da tabela.

<form action="" method="post">
<?php
 include("conexao.php");
 $result=@mysql_query("select * from user ORDER BY ID");
     echo "<table width=900 border=1>";
     echo "<tr>";
     echo "<td>Nome</td>";
     echo "</tr>";
 while($row=@mysql_fetch_array($result)){
     echo "<tr>";
     echo "<td>".$row["NOME"]."</td>";
     echo "</tr>";
 }
 ?>
      <input type="submit" value="Cadastrar" name="botao">
</form>

<?if (isset($_POST["botao"]))
 {
 header('Location: cadastrar.php'); 
 }
?>
</body>
</html>

Obrigado

Link to comment
Share on other sites

1 answer 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
      152k
    • Total Posts
      651.6k
×
×
  • Create New...