View Single Post
Old 12-19-2007, 03:10 PM   #5 (permalink)
ReSpawN
The Frequenter
 
ReSpawN's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
ReSpawN is on a distinguished road
Default

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.
Send a message via MSN to ReSpawN
ReSpawN is offline  
Reply With Quote