short question.
I used the FormData Object in Javascript to send data to a php file, which saves it into a DB and sends a "ok" back.
Everything works fine BUT if I look into the Network Tab, I can see the data -> user, password etc.
Question would be, why bother using something like FormData if the data I send is visible in the browser, I could just use standard php you know, classic "style".
I just can't wrap my head around Javascript FormData Object, why bother using it, or do I use it in the wrong context? Where do you guys use it?
Thanks in advance.
My Answer:
response back to the client. Is there any advantage to using FormData in this scenario compared to just sending the data in a standard PHP POST request?
Rate this post
4 of 5 based on 3672 votesComments