![]() |
How to send this form? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: How to send this form? (/showthread.php?tid=14769) |
How to send this form? - El Forum - 01-14-2009 [eluser]Unknown[/eluser] Hallo, I just made a form with addRow function. (my first form with javascript) see image de code Code: <?php perhaps someone can help me. thanks in advance How to send this form? - El Forum - 01-15-2009 [eluser]obiron2[/eluser] Short answer - exactly the same as you would any other form. Long answer - Whe you usesr the POST method, the http request includes an array called $_POST which contains all of the fields. Where you have many fields with the same name and they are arrayed, you will need to process the fields in groups based on their array indexes. (I am guessing that each row creates one line in your database) If you want to do validation and represent the form then things are a little more complicated as you would need to appy the validation rules to each field in the array and rebuild the form dynamically based on the number of records. Obiron P.S. please don't use tables to force layout. use DIVs and SPANs and CSS. you will thank me in the long run. How to send this form? - El Forum - 01-15-2009 [eluser]Unknown[/eluser] Thanks for reply. P.S. please don’t use tables to force layout. use DIVs and SPANs and CSS. Do you mean by this that i should use divs on my index page? Long answer would be nice to learn. because i want to deposite the data into database. Right know i am writing validation with javascript. How to send this form? - El Forum - 01-15-2009 [eluser]jonhurlock[/eluser] With regards to the P.C. about the use of DIVS, SPANS, and CSS. Try reading the following: A list apart - pretty accessible forms Hope that helped ![]() |