php - HTML Button that saves and move to the next page -


i have small problem. want have button in html page saves every data added in textfields , when click move next page.

my code follow...

<input type=button onclick="location.href='education.php'" value='next'> 

but moves next page not save data in database ...

can me please? thanks.

try :

<?php if(isset($_post['submit'])) { // insert query put here  header('location: education.php'); }  ?>     <html>     <head>     </head>     <body>     <form action="<?php echo $_server['php_self']; ?>" method="post">     <input type="submit" value="next" name="submit">     </form>     </body>     </html> 

education.php :

   <?php    echo "successfully updated."; ?> 

Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -