how to generate new input fields based upon a text field value? |
[eluser]towki[/eluser]
[quote author="Smalbach" date="1351434793"]in php file1.php Code: <form action="file2.php" method="post" > file2.php Code: <?php you can integrate with codeigniter but I recommend you to do it with jquery, is more attractive @solounaverdad[/quote] But i have only one file, i mean one view only in codeigniter where there is only one form but two submit buttons, one functions as generating fields and the other one function as saving all the data to a database. See my screen shot
[eluser]Smalbach[/eluser]
this is one example that i found searching in google whit jquery http://charlie.griefer.com/blog/2009/09/...-elements/ you can see the documentation http://api.jquery.com/append/ You should learn javascript jquery |
Welcome Guest, Not a member yet? Register Sign In |