12-19-2007, 03:10 PM
|
#5 (permalink)
|
|
The Frequenter
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
|
Yes, initializing the same, twice, isn't possible. (edit, you CAN reset a counter with the reset(); command)
PHP Code:
<?php
/** * @author ReSpawN * @copyright 2007 */
$count = 3; for($i = 0; $i <= $count; $i++){ echo '<input type="submit" name="submit'.$i.'" value="Submit'.$i.'" />'; } if (isset($_POST['submit'])) { echo $_POST['submit'].' has been set.'; } ?>
__________________
"Life is a bitch, take that bitch on a ride"
Last edited by ReSpawN : 12-19-2007 at 06:21 PM.
|
|
|