Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

As part of my project, I am required to provide my client a functionality that can verify the input Social Security Number by using CBSV's web service. I've read the documents in CBSV's website, including http://www.ssa.gov/cbsv/webservice.html, but can't see any example that may help me to write a code to verify SSN. Right now there are some issues that I'm trying to figure out how to solve.

  1. Should I use PHP (the programming language of my app) or Javascript (the js part of my app) for SSN Verification? If PHP, then how?
  2. If Javascript, then do I need to create an AJAX call to process? If so, how should I begin with this requirement? And if not, there is any other way to do this?

I need help. :(

share|improve this question
    
You should validate all external data in your PHP script anyway. You may choose to validate in Javascript too, but the technical requirements mean you'll probably use AJAX to get PHP to do it for you rather than using the API from Javascript. As to how - look at the documentation on the site you linked to. Everything you need to know is there. This question is far too broad for an answer. Start your implementation and ask a more focussed question if you run into trouble. –  Mike W 42 mins ago
    
My client requires that when their customer enters their SSN, I'll have to check immediately to see if that is correct and display appropriate message (if it's invalid). So I guess may be I have to use AJAX but the problem is I don't know how to start. I mean I have something like this to get the SSN field on the form. var input = document.getElementById(ssnfield); but I don't know what to do next? –  php.dev.2014 34 mins ago
    
@php.dev.2014 -- You'll have to start off by learning a bit of Javascript and Ajax. There are a lot of examples out there you can find with Google. If you come across a specific question, feel free to ask a new question with the details about the problem you are having. Be sure to include what you've tried and why it isn't working. –  Jeremy J Starcher 29 mins ago
    
@php.dev.2014 If you're stuck there you have a long way to go before you can implement a solution. If you're up against a deadline consider paying someone. Stack Overflow is not the place to get handholding through the entire process. –  Mike W 25 mins ago
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.