Questions tagged [server-side-validation]
119 questions
27
votes
1 answer
iOS Server Side Validation - receipt types
I'm getting 2 kinds of receipt formats from Apple when i try to verify purchases on the server.
Any idea what's the difference ?
1)
content: {
status: 0,
receipt: {
item_id: "662554154",
original_purchase_date: "2012-10-12…

refaelos
- 7,927
- 7
- 36
- 55
22
votes
4 answers
Laravel 5.2 Validation Error not appearing in blade
I want to show validation Error in View page while user giving wrong input. It's Ok that it's not saving anything in database while a user giving wrong input. But there is no error message in user view page. If anyone find the error, please help me…

User57
- 2,453
- 14
- 36
- 72
13
votes
5 answers
Why do we need both client side and server side validation?
One argument for using both client side validation (JavaScript) and server side validation using a validator is that if the client browser does not support JavaScript or JavaScript has been turned off deliberately, then client side validation is…

Victor
- 16,609
- 71
- 229
- 409
12
votes
4 answers
Validation does not work with Partial - NestJS
I want to apply server-side validation on my CRUD API. The entity in question is called Employee. I am using an employee.dto (shown below) for the create and update endpoints.
The class-validator package works fine on the create method but ignores…

Haseeb Burki
- 676
- 2
- 8
- 23
10
votes
0 answers
How to get Game Center player name on server-side
In our multiplayer mobile game we want to use player names from Game Center. Those player names will be shown in public leaderboards, so we want to ensure on our server that Game Center player name is actually belongs to that specific user.
I have…

Nikolay Popov
- 1,106
- 7
- 8
9
votes
3 answers
So is it safe to validate form on client-side only?
Of course, I know that server-side validation is a MUST.
I'm using jQuery to validate form inputs and using jquery ajax to do server-side(PHP) validation at the same time. So I guess it may be safe since it's validating for both sides while…

Kingsley
- 404
- 6
- 15
5
votes
6 answers
User input validation, client-side or server-side? [PHP/JS]
Is it better to validate user input before it's sent to the server with JS or server side with PHP? Or maybe it's worth doing both just to be on the safe side?
I'm creating a site (very simple at the moment) that has a members area/admin area/etc.…

Shogun
- 53
- 1
- 3
5
votes
3 answers
How to do and show server validation errors in angular form
I'm new to angular. I was trying something and got stuck.
In my form, I want to show server validation response as error coming from a laravel rest api. But don't know how to store and show it in the template. I am able to log it to the console but…

Debarshi Bhattacharjee
- 689
- 1
- 11
- 18
5
votes
0 answers
Is there a way to implement server side verification in google admob using react-native/expo and not android only?
I'm developing a expo/react-native app.
I want to use google admob inside my app (rewarded ads, videos), and verify in my server (node.js) if the user did finish the ad.
I saw in the website of google admob that there is a way to verify this in…

OmerLevi
- 119
- 1
- 8
5
votes
1 answer
Javax Bean Validation : @Max and @Min is not working
I have following model class
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
public class Person {
@Max(value = 10, message = "First name should be smaller than 10 characters.")
private String fname;
…

Bhushan
- 1,489
- 3
- 27
- 45
5
votes
4 answers
How to call javascript function in php code?
on my login form, i am putting server side validations and if error occurs i want to display those error just below the validated control. Now for this, i am trying to call javascript function to show validation message in php code but not able to…

Kalpana Dixit
- 449
- 3
- 7
- 19
4
votes
1 answer
Django: Avoiding Server-Side and Client-Side Validation Code Duplication
How do you avoid duplicating validation code on the server-side and on the client-side with Django?
Given that Django follows a Don't Repeat Yourself principle, it seems logical that there would be a way to do this, but I have no idea how.

user541686
- 205,094
- 128
- 528
- 886
4
votes
4 answers
asp.net postback prevented after clientside validation
I have an asp.net form which contains a dropdownlist which posts back to the server on change and populates second dropdownlist with some dates.
The form also contains other fields some of which are validated clientside and some server side.
Here's…

Tom
- 12,776
- 48
- 145
- 240
3
votes
1 answer
Android In-app subscription receipt validation response showing an error 503 - An internal error occurred
We were trying to validate the receipt generated from the mobile app from the server-side. It was working initially, but we were providing the receipt details directly to the code. Now we are trying it from the mobile app API functions, we are…

Sunubhai AS
- 31
- 4
3
votes
2 answers
AngularJS post json data + server side validation in codeigniter
I've searched all over the internet that how to form validate data sent by Angular js $http POST request in codeigniter.
For clear understanding I've posted completed HTML data. I believe that most of the developer are looking for this solution.…

Pavan Webbeez
- 219
- 3
- 12