html formunuda eklersen ,
astm fonksiyonun nerde ?

formu post ile gönderiyor isen

astm('ad'); değil astm($_POST['ad']);

olacak.