EllisLab text mark
Advanced Search
     
Expression Engine to Code Igniter Submission Form Example
Posted: 08 July 2012 08:29 AM   [ Ignore ]
Joined: 2008-09-03
334 posts

Hi - I would like to find an example where a form in expression engine submits to a code igniter form, which then in turn submits to a custom table in the EE database. Where can I find this info? Here’s what I’m trying to accomplish:

FORM:

<form action="controller_url.php" method="post">
<
tr>
    <
td><input type="text" name="user[0][name]" value=""></td>
    <
td><input type="text" name="user[0][address]" value=""><br></td>
    <
td><input type="text" name="user[0][age]" value=""></td>
    <
td><input type="text" name="user[0][email]" value=""></td>
    <
td><button>SUBMIT</button></td>
</
tr>
</
form

CONTROLLER:

foreach($_POST['user'as $user)
{
    $this
->db->insert('mytable'$user);
 
Posted: 09 July 2012 02:36 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2011-11-25
7174 posts

Hey heaversm,

This post is better suited to Development and Programming, so I move the thread on over.

Welcome!

Cheers,

 Signature 

Recent version: EE 2.5.4 | Forum Module 3.1.10 | MSM 2.1.4 | 2.x Bug Tracker | Version Upgrade