Form not sending full data
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?
Have you tried this with different browsers and sniffed the network traffic to see exactly what's being sent?
Grab Firebug and make sure it's actually sending the POST data.
精彩评论