What's diff between form actions and server actions
Unanswered
Virginia's Warbler posted this in #help-forum
Virginia's WarblerOP
What's diff between form actions and server actions?
9 Replies
Netherland Dwarf
@Virginia's Warbler theyre same in the sense thats its an calling a server method
Form actions usually have a url to a pho page or some api
Server actions allows you to do the same but without the need for a url or api call
But in react to if you use a form action with the function embedded on the same page as the form there is no security
Whereas server actions the function is in the server so no one can access it on the cloent side
Virginia's WarblerOP
What do you mean by "pho page"?
Netherland Dwarf
I meant php page
Virginia's WarblerOP
Thank you
In react, form action has the extra ability to call client-side function after a form had been submitted.
Server actions are a react feature, that creates instant endpoint to the server that you can call anywhere in the client
Server actions are a react feature, that creates instant endpoint to the server that you can call anywhere in the client