Jump to content

Recommended Posts

Hello there!

 

I'm in the midst of building a page on my website that allows users to change their details.  Including usernames and passwords.  I love using JS and AJAX to do these kinds of forms but feel very uncomfortable submitting these types of new details to the database over AJAX.

 

I know I can rename variables and make things hard to read, but really I would prefer to not have to do this.  I'm not submitting database field names in the URL, and my select/update strings are extremely narrowed down.  Passwords are encrypted, I've taken all the common sense steps.

 

Is there any other technology that allows updating only a part of a page, that is more secure?  It's all client side I guess, so I understand my question is pointless.  Maybe there is something?

 

Thanks

 

Nick 

Link to comment
https://forums.phpfreaks.com/topic/283781-website-security-question/
Share on other sites

Doing it over AJAX is just as secure/insecure as using a regular form. Really, the only difference between the two (besides the implementation) is whether the form will cause the browser to navigate to a new URL or not.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.