How to achieve this:
//view.php <input type="hidden" name="Name" value="<?php echo $variable->id; ?>"
using CodeIgniters form_hidden helper:
//view.php <?php echo form_hidden('Name','<?php echo $variable->id; ?>') ?>
The first one works fine when I show $ variable-> id, but CI form_hidden is not working.
Form helpers are evaluated when the script is run, like any other script, so you do this:
<?php echo form_hidden('Name', $variable->id); ?>
If you have shorttags enabled, you can do:<?=form_hidden('Name', $variable->id);?>
<?=form_hidden('Name', $variable->id);?>
The following is complete information for the CodeIgniter form helper class:http://ellislab.com/codeigniter/user-guide/helpers/form_helper.html
Source: https://habr.com/ru/post/1743763/More articles:Does Watir work under ruby 1.9.1? - ruby | fooobar.comБесплатные или открытые словари - dictionaryHow to enable .com key for UITextField keyboard? - iphoneHow to track the flow of raw (character) devices on Unix? - unixXAML ComboBox Binds to Property - bindingdefine constant in php - phpOverloading new, removal in C ++ - c ++Hibernate HQL and Grails. How to compare collections? - collectionsProblems installing Moose on Mac (compiling Sub :: Name prereq) - perlDoes the OpenGL stencil test run before or after the fragment program? - c ++All Articles