0
I’m trying to filter using this filter,
filter_input(INPUT_POST, 'cropData[width]', FILTER_VALIDATE_INT);
but nothing returns.
0
I’m trying to filter using this filter,
filter_input(INPUT_POST, 'cropData[width]', FILTER_VALIDATE_INT);
but nothing returns.
Browser other questions tagged php
You are not signed in. Login or sign up in order to post.
What this filter should return?
– Wees Smith
Value of the width of an image
– Gabriel
tried to give a
var_dump()
there in that expression to see?– Wees Smith
@Gabriel, this variable is an array ??
– Oliveira
@Olive tree yes, and an array
– Gabriel
@Gabriel, put the passage that you assign the value to this variable!!
– Oliveira
@Oliveira, and by javascript , he makes _POST with the values to change the dimensions of an image ; example _POST cropData[x]: 0 cropData[y]: 5 cropData[width]: 431 cropData[height]: 324
– Gabriel