Use:
$postvalue = array("a", "b", "c");
foreach($postvalue as $value)
{
echo '<input type="hidden" name="result[]" value="'. $value. '">';
}
And you will get $_POST['result']
as an array.
print_r($_POST['result']);
More Related Contents:
- What does $settings[‘setting’] = “setting” Do? [closed]
- Getting particular object
- How can I parse a JSON file with PHP? [duplicate]
- How can I combine two strings together in PHP?
- How to add elements to an empty array in PHP?
- Example of how to use bind_result vs get_result
- PHP Regex to get youtube video ID?
- “Fatal error: Cannot redeclare “
- How to get the file extension in PHP? [duplicate]
- PHP to search within txt file and echo the whole line
- jQuery UI Sortable, then write order into a database
- Get the date of next monday, tuesday, etc
- How can I get customer details from an order in WooCommerce?
- apc vs eaccelerator vs xcache
- Adding custom field to product category
- How can I break an outer loop with PHP?
- laravel No supported encrypter found. The cipher and / or key length are invalid
- Getting Started with PHP Extension-Development [closed]
- Laravel Escaping All HTML in Blade Template
- How can I replace the deprecated set_magic_quotes_runtime in php?
- How can I block direct access to my JavaScript files?
- $_POST max array size
- 999 Error Code on HEAD request to LinkedIn
- phpMailer – How do you Remove Recipients
- How to send data using redirect with Laravel
- How can I get jQuery code completion in NetBeans?
- adding a namespace when using SimpleXMLElement
- Yii2 require all Controller and Action to login
- How to get the object or class name?
- How to overload class constructor within traits in PHP >= 5.4