Any ideas why this wont print out
Posted
by stan
on Stack Overflow
See other posts from Stack Overflow
or by stan
Published on 2010-04-23T13:43:17Z
Indexed on
2010/04/23
14:23 UTC
Read the original article
Hit count: 186
Revising for php and cant seem to get this to print the values out that i want
Any ideas?
Thanks
<form action="revision.php" method="GET">
<input type=“text” name=“number[]”/>
<input type=“text” name=“number[]”/>
<input type=“text” name=“number[]”/>
<input type=“text” name=“number[]”/>
<input type=“text” name=“number[]”/>
<input type="Submit" name="Calcuate"/>
</form>
<?php
if(isset($_GET['number'])){
$amount = count($number);
for($i=0; $i < $amount; $i++){
echo $number[$i];
}
}
?>
© Stack Overflow or respective owner