Skip to content
Advertisement

Tag: ajax

Avoid Laravel redirect after validation

I’m making a simple validation on my Laravel controller: My problem is that this validation redirects me to the home if fails, and i’m making the request via AJAX, i know that Laravel detects when a request is via Ajax, but it only works if is a normal request (the typical request in which i send the headers with Content

Database Schema Treeview PHP MYSQL

I am trying to create a treeview (ideally using bootstrap) from a MYSQL database table that is essentially a data dictionary structure. Every example I have seen creates a parentid in order to create the json/array input for the treeview however my data structure has all of the hierarchy levels on each line. The hierarchy would be: Database Schemas Tables

PHP SQL get values with complex checkbox filter

I have 3 tables product product_feature feature In the first one I have my products, the second one I have the id to the product and the id to the feature and the 3rd one I have the features that can be different colors, sizes, material… I built a filter menu with Color blue, red, white, black… Size XL L

call a new PHP page and pass a long text

I have a PHP page(main) and would like to call another PHP page(printpage) on mouse click. I need to pass a large text. I do not want to pass it as a url parameter as it will be too big. I guess I want to pass it as an ajax but I want to open the printpage so I can

Advertisement