Simple post not working (bug)

I am using the below code and want a simple print on submit event, but it is not giving any result.
Please have a look and suggest.

echo "hello"." ".$slno;// this is to print.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<body bgcolor="#FF0000">
<form id="registration" name="registration"  method="post" action="<?php echo $_SERVER['PHP_SELF']?>">
$query_for_result=mysqli_query($con,"SELECT * FROM album ORDER BY id ASC");

<table >
    <td  >Item</td>
    <td  >Paper</td>
    <td  >Finish</td>
    <td  >Price</td>
    <td  >Vat</td>
    <td  >Total Amount</td>




while($row = mysqli_fetch_assoc($query_for_result))

//echo $id;
   <td><input id="slno" name="slno[]" value="<?php echo $f1; ?>" type="text" style="width:20px;"/></td>
   <td><input id="album_name"  name="album_name[]" value="<?php echo $f2; ?>" type="text" style="width:150px;"/></td>
   <td><input  id="paper_used" name="paper_used[]" type="text" value="<?php echo $f3; ?>" style="width:85px;"/></td>
   <td><input  id="finishing" name="finishing[]"  value="<?php echo $f4; ?>" type="text" style="width:90px;"/></td>
   <td><input  id="price" name="price[]"  value="<?php echo $f5; ?>" type="text" style="width:25px;"/></td>
   <td><input  id="vat" name="vat[]" type="text" value="<?php echo $f6; ?>" style="width:35px;"/></td>
   <td><input  id="total_amt" name="total_amt[]"  value="<?php echo $f7; ?>" type="text" style="width:50px;"/></td>



    <td colspan="7" ><input  name="save" value="Save" id="save" type="submit" style="width:83px;" /></td>




Hi rkrathor,

Your submit button is actually named save not submit, which is why your IF check isn’t working.

I prefer to use this method to check for post requests, as it’s not dependent on any specific var being submitted:

    // …

PS. When posting code samples, if you wrap them in

 tags they're easier to read (especially for longer snippets).

It solved by
echo “hello”." ".$slno;// this is to print.