You are viewing our Forum Archives. To view or take place in current topics click here.
#11. Posted:
lamronsavage
  • New Member
Status: Offline
Joined: Feb 25, 20168Year Member
Posts: 19
Reputation Power: 13
Status: Offline
Joined: Feb 25, 20168Year Member
Posts: 19
Reputation Power: 13
-Deano wrote The original topic was asking if there was any use to use ajax and curl together due to a discussion with a few classmates. I didn't say it was sensible to do so...

The 'validate a username' was just an example. This is not a functional bit of work I am doing.


there is 0 logical point to making a request to php to send a request to php from the server

heres the control flow for validating a username (properly)

is it restricted to authd users?

auth check? (restricted page?) -> form -> ajax -> php -> route middleware / auth check -> sql -> php json response -> update fe with res

if not:
form -> ajax -> php -> sql -> php json response -> update fe with res
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.