Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Flashdata not clearing on refresh/redirect
Post: RE: Flashdata not clearing on refresh/redirect

Well my existing controller method follows the same pattern: Code: --     public function log_illustration_update($id)     {         $data = $this->input->post();         (($data['painting'] != 'X'...
13,974 Views
9 Replies
02-12-2021, 10:27 AM
msheath
    Thread: Flashdata not clearing on refresh/redirect
Post: RE: Flashdata not clearing on refresh/redirect

demyr Wrote: (02-12-2021, 07:50 AM) -- May I ask why you are keeping it within your array? -- I'm not doing that consciously - it just appears like that. How would I do it differently?
13,974 Views
9 Replies
02-12-2021, 07:57 AM
msheath
    Thread: Flashdata not clearing on refresh/redirect
Post: Flashdata not clearing on refresh/redirect

Using CI 3.1.11: I am sending a flashdata error message when a form is filled incorrectly. The message is appearing correctly but does not clear on refresh/redirect. Controller method includes: Cod...
13,974 Views
9 Replies
02-12-2021, 02:58 AM
msheath
    Thread: Checkbox validation
Post: RE: Checkbox validation

InsiteFX Wrote: (06-15-2020, 02:29 AM) -- use required for the checkbox validation. -- Can't see how that would work. The users would then have to check all the boxes to get past validation but the...
1,784 Views
3 Replies
06-15-2020, 02:43 AM
msheath
    Thread: Checkbox validation
Post: Checkbox validation

I am setting up an accommodation booking form for a small establishment with 3 rooms. The form contains an input checkbox for each room. So you can choose 1, 2 or 3 rooms by checking 1, 2 or all 3 box...
1,784 Views
3 Replies
06-14-2020, 07:09 AM
msheath
    Thread: Database text and PHP code
Post: RE: Database text and PHP code

Brilliant - thanks so much. I've never used the template parser and I'd forgotten it existed. That is a solution!
2,529 Views
2 Replies
07-13-2018, 10:47 AM
msheath
    Thread: Database text and PHP code
Post: Database text and PHP code

I'm sure this is an old chestnut but I am building a simple CMS to hold page text. The problem is that the pages currently use CI helper functions eg base_url() for image paths and safe_mailto() for m...
2,529 Views
2 Replies
07-13-2018, 09:46 AM
msheath
    Thread: Problems with ajax
Post: RE: Problems with ajax

Now I am seeing a change when I turn off csrf. In the Console Net window, instead of '403 Forbidden' I'm getting '500 Internal Server Error'. There is still a csrf prob as I would obviously want to ha...
3,582 Views
4 Replies
07-30-2017, 01:08 AM
msheath
    Thread: Problems with ajax
Post: RE: Problems with ajax

When I turn off csrf, there appear to be no reported js errors. The console is blank
3,582 Views
4 Replies
07-29-2017, 02:51 PM
msheath
    Thread: Problems with ajax
Post: Problems with ajax

My setup is Windows 10, Wamp version 3.0.6 and Codeigniter 3.0.6. I am trying to use the Calendar class to generate a calendar that will permit content updating by clicking on a particular date. I am ...
3,582 Views
4 Replies
07-29-2017, 04:27 AM
msheath
    Thread: Open pdf document
Post: Open pdf document

Normally I open a pdf document directly from a link but suppose I want to add conditionality so that eg the pdf would open before 12.00 but not after 12.00. In that case I would like the link to go to...
1,817 Views
1 Replies
02-12-2017, 02:26 PM
msheath
    Thread: Captcha error word_length
Post: Captcha error word_length

I am testing Captcha and my code is like this: Code: -- $this->load->helper('captcha'); $vals = array(        'word'          => mt_rand (100000,1000000),        'img_path'      => './publi...
2,305 Views
1 Replies
06-26-2016, 02:24 PM
msheath
    Thread: Form validation with redirect
Post: RE: Form validation with redirect

Martin7483 Wrote: (10-28-2015, 05:00 AM) -- If you want the scrolling effect you can still use my approach and add a scrollTo JavaScript that could be triggered when #anchor is present in the URL. Wh...
30,102 Views
18 Replies
10-28-2015, 05:15 AM
msheath
    Thread: Form validation with redirect
Post: RE: Form validation with redirect

Narf Wrote: (10-28-2015, 04:21 AM) -- msheath Wrote: (10-28-2015, 02:54 AM) -- Narf Wrote: (10-27-2015, 03:42 AM) -- Redirecting is never the solution ... every single time I see a thread with a ti...
30,102 Views
18 Replies
10-28-2015, 04:50 AM
msheath
    Thread: Form validation with redirect
Post: RE: Form validation with redirect

Narf Wrote: (10-27-2015, 03:42 AM) -- Redirecting is never the solution ... every single time I see a thread with a title similar to this one, I know the OP is doing something wrong. You can use J...
30,102 Views
18 Replies
10-28-2015, 02:54 AM
msheath
    Thread: Form validation with redirect
Post: RE: Form validation with redirect

joseph.dicdican Wrote: (10-27-2015, 03:30 AM) -- Hi, I would like to share my opinion. From the thread, I found this block of statement. Quote: -- $this->data['body_id'] = 'home'; $this-...
30,102 Views
18 Replies
10-28-2015, 02:39 AM
msheath
    Thread: Form validation with redirect
Post: RE: Form validation with redirect

Martin7483 Wrote: (10-27-2015, 12:16 PM) -- What is the url to your form? I'm assuming it is /home and your post url is /home/send. If this is the case then you are defining you rules in the send met...
30,102 Views
18 Replies
10-28-2015, 02:15 AM
msheath
    Thread: Form validation with redirect
Post: RE: Form validation with redirect

Martin7483 Wrote: (10-26-2015, 07:44 AM) -- Your home and send method are in the same controller. Add your validation check to your home method. When valid you can then pass it to your send method fo...
30,102 Views
18 Replies
10-26-2015, 08:09 AM
msheath
    Thread: Form validation with redirect
Post: RE: Form validation with redirect

Martin7483 Wrote: (10-26-2015, 05:34 AM) -- I assume you are posting to the same page where the form is loaded and validated. In that case you could add the #anchor to the post URL. Using flashdata w...
30,102 Views
18 Replies
10-26-2015, 07:26 AM
msheath
    Thread: Form validation with redirect
Post: Form validation with redirect

Although this subject has come up a munber of times, tantalisingly the posts do not quite address my problem. Assuming form validation fails, the 'send' function needs to reload the form page with ...
30,102 Views
18 Replies
10-26-2015, 04:42 AM
msheath

Theme © iAndrew 2016 - Forum software by © MyBB