Form not sending full data
Posted
by gAMBOOKa
on Stack Overflow
See other posts from Stack Overflow
or by gAMBOOKa
Published on 2010-05-31T02:08:44Z
Indexed on
2010/05/31
2:12 UTC
Read the original article
Hit count: 336
I have a form with over 50 input fields. The input fields are divided into 5 jquery jabs within the form container. Here's a sample of what it looks like:
<form action="admin/save" method="post" enctype="multipart/form-data">
<input type="hidden" name="type" value="department" />
<input type="hidden" name="id" value="21" />
<div id="tabs">
<ul>
<li><a href="#tab-1">Tab 1</a><li>
<li><a href="#tab-2">Tab 2</a><li>
<li><a href="#tab-3">Tab 3</a><li>
</ul>
<div id="tab-1">
<label>Name</label>
<input type="text" name="user-name" />
</div>
<div id="tab-2">
<label>Address</label>
<input type="text" name="user-address" />
</div>
<div id="tab-3">
<label>Phone</label>
<input type="text" name="user-phone" />
</div>
</div>
<input type="submit" value="Send" />
</form>
I'm using PHP's Kohana framework, so admin
maps to a controller, and save
maps to the method action_save
.
When I output the $_POST
variables in action_save
, only 'type'
and 'id'
show up, all the other fields don't seem to submit their data.
What could I be doing wrong?
© Stack Overflow or respective owner