Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7798249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:57:02+00:00 2026-06-01T23:57:02+00:00

I am looking to start ajax for the first time. I will be using

  • 0

I am looking to start ajax for the first time. I will be using it to do a server side validation of a field in a form. Basically, the ajax delivers the input that the users gives, and some php code carries out an if else rule to and sends a response back accordingly. In my php code, some strings will contain sensitive data, will users be able to read or see these strings in anyway?

Thanks for all the helpful answers, it’s now very clear :).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T23:57:04+00:00Added an answer on June 1, 2026 at 11:57 pm

    Answer

    In my php code, some strings will contain sensitive data

    Yes, users can see what the server responds with if they try. BUT, if you sensitive data is in PHP code and is never part of the response they’ll not be able to see it.

    Although, never put sensitive information in the source either because anyone who has access to your source code in PHP will be able to have that information. A creepy web hosting company can theoretically do that if they want.

    Tip

    Since you are starting out I would like to mention you should use jQuery to do your Ajax stuff.

    Attempt to explain Ajax

    When you make an Ajax call you send a request using the HTTP protocol after the page load. JavaScript makes the request, receives a response and makes changes to the HTML DOM that’s loaded in the browser without a refresh.

    Requests: Ajax function --(HTTP(S))--> SERVER --(HTTP(S))--> Ajax function
    
    Action: Ajax function --> interpret response and manipulate DOM accordingly
    

    So in other words, it’s just like a request made by the browser in terms of protocol, just that it’s a Ajax function doing it. So whatever applied to these requests from the browser applies here too.

    Typically the response is a JSON string since that’s easy for the Ajax function to interpret as it’s JavaScript.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking to start using a key/value store for some side projects (mostly as
I am looking to start working on a personal site using C#. I work
I am looking for a way to start a function on form submit that
I am looking to start from scratch to learn to program embedded systems. After
Hi just about to get the dev team to start looking at the next
Looking for a good set of base objects to start a website up in
I've been looking at the C++ quick-start guide for msgpack. http://wiki.msgpack.org/pages/viewpage.action?pageId=1081387 There, there is
I want to start automating more of my web development process so I'm looking
I am extremely new to Direct2D after just looking at the MSDN start guide
I ask this not to start anything negative. Rather, after looking at ASP.NET MVC

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.