pass it through as a hidden form field, like this:
<input type="hidden" name="rowID" value="$rowID">
make sure you put the rowID value as the value of the hidden field.
you could also pass the rowID on the url string like this:
<form name="whatever" method="post" action="yourpage.php?rowID=$rowID">
hope this is what you are looking for.