• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] Form validation and dynamic URLs causing havoc :-(

#4
[eluser]boltsabre[/eluser]
Ah thank you very much, sorry about the late reply, a combination of being busy, being sick and having my birthday has meant I had to put my beloved project on ice for a week or so.

Anyway, going of your suggestion, the answer turned out to be very very simple.

My old form tag looked like this:
Quote:<?php echo form_open('visas/forum/post-reply/'

Simply by adding the uri segments as such,
Quote:<?php echo form_open('visas/forum/post-reply/'.$this->uri->segment(4).'/'.$this->uri->segment(5).'/'.$this->uri->segment(6)); ?>

fixed the whole issue. Now if the form does not validate it redirects back to the correct view with my dynamic url still in place. Now... I just hope that this fixes my random pagination problem that seems to occur every so often when a reply is submitted after failing validation the first time around.


Messages In This Thread
[solved] Form validation and dynamic URLs causing havoc :-( - by El Forum - 06-02-2011, 06:10 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.