plik sortowanie.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//PL"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="Keywords" content="sortowanie, ob, formularz"> <meta http-equiv="Content-Language" content="pl"> <meta name="Author" content="wojcienty"> <meta http-equiv="Creation-Date" content="Fri, 01 Apr 2011 12:12:25 GMT"> <meta name="Robots" content="all"> </head> <body> <form action="sortowanie.php" method="post"> <select name="wybor"> </select> <input type="submit" value="sortuj"/> </form> </body> </html>
plik sortowanie.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//PL"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="Keywords" content="sortowanie, ob, formularz"> <meta http-equiv="Content-Language" content="pl"> <meta name="Author" content="wojcienty"> <meta http-equiv="Creation-Date" content="Fri, 01 Apr 2011 12:12:25 GMT"> <meta name="Robots" content="all"> <title>Sortowanie</title> </head> <body> <?php $sql='SELECT * FROM Klasa ORDER BY Numer ASC'; { } ?> </body> </html>