Welcome Guest, Not a member yet? Register   Sign In
How to implement EventSource on Codeignigter app?
#28

(This post was last modified: 02-25-2020, 03:38 PM by dave friend.)

(02-25-2020, 03:16 PM)SmokeyCharizard Wrote: Thanks for the reply! I should have been more specific in my response,
Yes, it seems like fetch will only send the form data in a format like above, with the weird "WebKitFormBoundary" stuff. I tried your trim solution, but it returned an empty string.

Let me try again.

At the controller function classicFirearmByDate() you can capture the form input fields by using

PHP Code:
$date $this->input->post('date');
$toDate $this->input->post('to-date'); 


Don't worry or mess with the "WebKitFormBoundary" stuff. The server will parse that and put the <input> data into $_POST just like when you use a normal <form> submit.

The trim and htmlspecialchars calls were code you had in your original post, so I left them in place.
Reply


Messages In This Thread
RE: How to implement EventSource on Codeignigter app? - by dave friend - 02-25-2020, 03:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB