![]() |
Submit button with third parameter = undefined in uri - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Submit button with third parameter = undefined in uri (/showthread.php?tid=50345) |
Submit button with third parameter = undefined in uri - El Forum - 03-23-2012 [eluser]Ninjabear[/eluser] Edits: I realised that the problem was working on a standard submit as well as form_submit() function. I've tracked this down to a particular css id. I've been using id="submit". This style looks as follows: Code: #submit{float:left;clear:none;width:150px;} It still shouldn't do this. -------------- Hi. Whenever I use form_submit(a,b,c) with ids and classes I get "undefined" in my uri for segment 3. The uri is: Code: http://domain.co.uk/collab/times/delete_time/168 The uri comes back as: Code: http://domain.co.uk/collab/times/delete_time/undefined Code: <?=form_open();?> It works when you do this: Code: <?=form_open();?> I've also done tests with a standard submit button and with params such as id and class I get the same issue. Removing the styling makes it work just fine. Not working (undefined): Code: <input type="submit" name="submit" id="submit_time" class="button-three" value="Edit time" /> Working: Code: <input type="submit" name="submit" value="Edit time" /> Obviously this is not an issue with form_submit() but is either the browser or framework. I'm on Firefox 9.0.1 (please don't tell me to update as CI should work on browsers back to IE7-8.) |