+ 3

Submit Form to the same page

Since all codes here are single page, I'd like to know if there's a way in the SL Playground to POST/GET the form data to the same page and then process it. Is there?

1st Jan 2018, 11:56 PM
Private [GER]
Private [GER] - avatar
2 odpowiedzi
+ 2
leave action empty
2nd Jan 2018, 12:05 PM
Chinemerem Nworisa
Chinemerem Nworisa - avatar
+ 1
You can use javascript to validate on submit which in here it's probably the best you can use. But in real life you would want to use something like AJAX with PHP which give you server-side access on demand and a lot safer.
2nd Jan 2018, 2:18 AM
Spider38E
Spider38E - avatar