cyber_ghost Posted February 29, 2008 Share Posted February 29, 2008 is there anybody here... already tried to retrieved datas from looped field names ....... looped field names are looped by php (for or while) after submitting the form. like this looped field names : .------------------------------------- add.php <?php for($loop=0;$loop<=10;$loop++) { ?> <input type='text' name='<?php echo "good_".$loop ; ?>' value='<?php echo "value".$loop; ?>'> <?php } ?> ... html code here ------------------------------------------- add.php is this right? ------------------------------------------- received.php for($loop=0;$loop<=10;$loop++) { // field names (looped) $names = ${'good'.$loop}; echo $_POST[$names]; } ------------------------------------------ received.php any help is appreciated.... Quote Link to comment Share on other sites More sharing options...
hawkenterprises Posted February 29, 2008 Share Posted February 29, 2008 Maybe I haven't had my coffee yet but your code didn't make alot of sense. What is looped field names? Most people just use the standard $_GET, $_POST, $_REQUEST... I've never have ran into an occasion to do what you are saying. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.