What's new

Help about data validation from user input(HTML/PHP)

allesh

Enthusiast
Joined
Sep 18, 2021
Posts
16
Reaction
1
Points
36
One of the features ng ginagawa kong information system for a private subdivision (w/mobile app) ay may Resident Report. Halimbawa, may kapitbahay na nagviolate sa rules or may incident. The user can take a picture and input details like subject and notes, the user must be login first para makagamit. Ang naiisip ko for validation ay automatic retrieve of user acc details, current date and time, is this enough? (like what if prank lang?)
 
explain mo pa nga mejo nakakalito
Screenshot 2021-09-18 200616.png
ayan parang ganyan ang concept. I was asked about 'how does the mobile app validate the resident report?'. Ang balak ko sana automatic retrieval ng current time and date to ensure the report is latest, automatic retrieve ng data ng user na nakalogin(na syang nagrereport para kung prank eh marereview kung sino) at attachment of photos is limited to(on the spot capture) para sure na hindi luma and photo o edited. Is that enough validation po ba?
 

Attachments

and how would you retrieve information without breaking data privacy act? kung incident report yan. dapat credible ang data na ilalagay. hindi pwedeng anonymous ang user nor walang alam si user na kinukuha na ang info niya. balik ka sa flowchart mo. sobrang mali mali ng iniimplement mo.
 
and how would you retrieve information without breaking data privacy act? kung incident report yan. dapat credible ang data na ilalagay. hindi pwedeng anonymous ang user nor walang alam si user na kinukuha na ang info niya. balik ka sa flowchart mo. sobrang mali mali ng iniimplement mo.
Di po, ang marretrieve na information ay ang information mismo ng nagrereport. From account nya po mismo. Accounts are given primarily by the administrator at sila(users/resident) na bahala magchange password. Incident rephrase ko po sa HOA regulations, pinabasihan ko lang po concept(itsura ng sa incident sa pic). Halimbawa videoke on past midnight, trespass etc.
 
Di po, ang marretrieve na information ay ang information mismo ng nagrereport. From account nya po mismo. Accounts are given primarily by the administrator at sila(users/resident) na bahala magchange password. Incident rephrase ko po sa HOA regulations, pinabasihan ko lang po concept(itsura ng sa incident sa pic). Halimbawa videoke on past midnight, trespass etc.
sa feature na to need na nakalogin at hindi guest ang user
 
Data of the user are saved upon registration as subdivision once na nagapply bilang residents doon ggawan ng hoa ng initial account ang resident at sila na bahala magmodify ng password to ensure na residente lang ang makakagamit
 
madaming loopholes sa gusto mong data validation kuno for time date etc. Una jan is yung user, if pipiliin ni user na later time na mag submit edi that defeats the purpose of recency.
 
madaming loopholes sa gusto mong data validation kuno for time date etc. Una jan is yung user, if pipiliin ni user na later time na mag submit edi that defeats the purpose of recency.
ano po kayang pwedeng klase ng validation ang gawin.
 
Medyo magulo ang validation na gusto mong mangyari.

Sabihin na natin na required na dapat may picture for evidence para makapag report then, basically aside from basic details ng nag report ang mga kakailanganin ay:

Picture
Description
Location
Time

Example may incident na nangyari sa isang street sa loob ng subdivision, kung may mga CCTV sa buong subdivision pwedeng macheck ng admin kung totoo nga na may incident, based from the time and location.

Pero paano kung nangyari yung incident sa loob ng bahay or sa area na walang CCTV?
Ang paraan lang para maverify kung valid yung report ay kung pupuntahan ng kung sino man na authority yung incident.

Yes sabi mo what if prank lang?
Then it's up to the HOA to create an agreement or rules among the members to have some kind of penalty if the report is invalid.

So to sum it up, there's not much you can do about the validation within the app besides some basic information about the incident, ika nga nila "To see is to believe."

Also a tip pag mag iinsert ka ng kahit anong information sa database lagi na yan dapat may time, kahit pag register lang ng user, pag edit ng details, may time na yan palagi lagi dapat may created_at or updated_at, and common use case niya ay for sorting.
 
Last edited:
Medyo magulo ang validation na gusto mong mangyari.

Sabihin na natin na required na dapat may picture for evidence para makapag report then, basically aside from basic details ng nag report ang mga kakailanganin ay:

Picture
Description
Location
Time

Example may incident na nangyari sa isang street sa loob ng subdivision, kung may mga CCTV sa buong subdivision pwedeng macheck ng admin kung totoo nga na may incident, based from the time and location.

Pero paano kung nangyari yung incident sa loob ng bahay or sa area na walang CCTV?
Ang paraan lang para maverify kung valid yung report ay kung pupuntahan ng kung sino man na authority yung incident.

Yes sabi mo what if prank lang?
Then it's up to the HOA to create an agreement or rules among the members to have some kind of penalty if the report is invalid.

So to sum it up, there's not much you can do about the validation within the app besides some basic information about the incident, ika nga nila "To see is to believe."

Also a tip pag mag iinsert ka ng kahit anong information sa database lagi na yan dapat may time, kahit pag register lang ng user, pag edit ng details, may time na yan palagi lagi dapat may created_at or updated_at, and common use case niya ay for sorting.
salamat pooo
 
Okay na ata TS basta nakalogin ang magrereport. Labag po ba sa privacy act ang pagrerecieved ng name at date ng user kapag magrereport? Ask ko lang po wala po kasi ako alam sa privacy act
 
Okay na ata TS basta nakalogin ang magrereport. Labag po ba sa privacy act ang pagrerecieved ng name at date ng user kapag magrereport? Ask ko lang po wala po kasi ako alam sa privacy act
Hindi naman labag sa data privacy act ang pagkuha ng personal information sa user as long as isinaad ng website or app yung mga data na kukunin sayo, dapat yung pagkuha nila ng personal data sayo ay may legitimate purpose at dapat agree yung user sa terms and conditions.

Nakasaad naman yan sa Terms and Conditions or Privacy Policy ng mga website or apps, yung pagka fill-up mo ng registration form may box ka na kailangan icheck. Kaya nga kung di mo yun ichecheck di ka makakaregister, kasi ibig sabihin di ka pabor or agree sa agreement isa na doon yung pagkuha ng personal information.

Example itong sa PHC https://phcorner.net/help/privacy-policy/ malinaw na nakasaad diyan kung ano yung mga personal na information na kinukuha satin at kung ano yung purpose sa pagkuha nito.

So basically hindi labag ang pag collect ng personal information as long as "collection of data must be a declared, specified, and has legitimate purpose".
 

Similar threads

Back
Top