Skip to content

pancard structure validation in javascript and php also

i want to do pancard validation in javascript only. Its limited to india only. the structure of pancard in India is as follows.. for example : AAAAA9999A First five characters are letters (A-Z), next 4 numerics (0-9), last character letter (A-Z) Each deductee is uniquely identified by the PAN If the PAN does …

Crop Uploaded Image To 1:1 Ratio PHP

I have my own PHP function allowing users to update their profile image. It all works fine, however, I am having a problem where users can upload any size image they want; i.e: 564 x 346. I do not …

Yii : How to add datepicker in order to filter gridview

Here is my codes in order to show some relation tables data in the controller and it is view code I want to add a date picker to view and use it in order to filter GridView I am new in yii2 please advise me Answer first of all install any datepicker widget i.e 2amigos date picker in your index

Merge request not working

I am trying to replace the ‘pic’ value, which is set as an array when it comes in, with an image file name but the merge does not seem to be working. I am not getting any errors in the log with the below code. I guess I am not allowed to embed pictures yet so there is links below.

Guzzle 6 send multipart data

I’d like to add some data to a Guzzle Http Request. There are file name, file content and header with authorization key. but I get error Catchable Fatal Error: Argument 2 passed to GuzzleHttpPsr7MultipartStream::addElement() must be of the type array, string given, called in vendorguzzlehttppsr7srcMulti…

Create a variable for each array item

I have the following code for my post sign up page on my site. $email = $request[’email’]; $username = $request[‘username’]; $password = bcrypt($request[‘password’]); $mmail = $request[‘mmail’]; $…