I have written a WML page (pl4a.wml) that will read the first 10 entries from a database and display them 1 at a time: essentially it's a Top 10 chart see code below. Every time a new page is displayed, clicking the left button on my phone reloads the same page after incrementing the pointer by 1.

In order to save screen space I used the card title attribute as the "at number ...". When I get to number 11, I want to change the title to something else, but I can't do it.

header("Content-type: text/vnd.wap.wml"); 
echo "<?xml version=\"1.0\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"" 
   . " \"http://www.wapforum.org/DTD/wml_1.1.xml\">"; 
<do type="prev" label="Previous">

<card id="card2" title="@ Number <?php print ( $pointer + 1 ); ?> ..">
function NextMatch($z)
	echo "<small><strong>";
	echo "<anchor>+";
	echo "<go href=\"pl4a.wml\" method=\"post\">";
	echo "<postfield name=\"pointer\" value=\"$z\"/>";
	echo "</go>";
	echo "</anchor>";
	echo "</strong></small>";

	if ( $pointer <= 9 ) // remember we start from 0 
	mysql_connect("localhost", "zzzzzz","iiiiiiii");
	$query  = "select a,b,c .............

	NextMatch($pointer + 1);

	$row = mysql_fetch_array($result);
	echo "'$A......
	echo "<br/>";


	echo "<br/>";
	echo "<anchor>Return";
	echo "<go href=\"index.wml\"/> ";
	echo "</anchor>";
Now I know that once I have reached 11 and come out of the loop the "return" is displayed and my only option is to go back to index.wml, but if I try and change the title by putting another card block in it is just ignored. Any ideas ?