Jump to content

[SOLVED] help in validating ssn


rsammy

Recommended Posts

i am working on a patient application for a doc. i am working on a module where when i enter a patient info, the system first generates a 13 digit patient number - starting with the character 'P' and followed by 12 numerics - for this newly entered patient. i then have to update the patients info - name, address, contact info, ssn, etc. on another screen.

now, before i update the patient info (or even while i am doing it) i need to store this system generated patient # along with the newly entered valid ssn in a new table - just for the record. the table that has the patient info is pat_info. and i want to maintain a history of patient #s created and overwritten in another table called temp_pat_ssn_history table.

i can do this if i can differentiate between these two patient #s (temp 13 digit ssn and valid ssn). now, how do i differentiate the temporary, system generated pat # in php? in javascript i remember there is a length funtion. how do i do this in php though?

any help with be greatly appreciated. thanx in advance
Link to comment
https://forums.phpfreaks.com/topic/31500-solved-help-in-validating-ssn/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.