Umm... not sure if your way would work.... Only because you wouldn't be posting the value of $no_lines unless you put it in a hidden field. What you could do instead is register a session variable "no_lines" and set it's value to the value of $no_lines:
session_start();
$_SESSION['no_lines'] = $no_lines;
Then, on the next page, just start the session, and when you need the $no_lines value, reference the $SESSION array:
session_start();
$no_lines = $_SESSION['no_lines'];
~Brett