Php code dose not work ,plz help me

36 views
Skip to first unread message

sayed

unread,
Mar 17, 2009, 5:51:05 AM3/17/09
to phpbook
Hello

I m write html code which file name:

ask_user.htm
<html>
<body>
<form method=post action=table_results.php>

Enter the multiplication table number <input type=text name=table
size=2>

<input type=submit>
</form>
</body></html>


and php code

<?php
$cnt = 1;
$table = $_POST['table'];

while($cnt != 11)
{
echo "$table x $cnt = ". $table * $cnt;
$cnt++;
}
?>


but it dose not work???

WBR
Sayed

TRIVUz

unread,
Mar 17, 2009, 5:01:07 PM3/17/09
to phpbook
join here
http://tech.groups.yahoo.com/group/phpexperts/

and ask again bro...

thanks
Reply all
Reply to author
Forward
0 new messages