• 0

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191


File: /var/www/html/cnasolution/site/application/views/question.php
Line: 191
Function: _error_handler

File: /var/www/html/cnasolution/site/application/controllers/Questions.php
Line: 419
Function: view

File: /var/www/html/cnasolution/site/index.php
Line: 315
Function: require_once

-> Please Help Me To Solve The Problem

-> I Send Data To Another URL for Process Something And That Web Page is another Server and Different URL.

-> When Ever I Try To Send Post Data That time i Faced CROS Error i try many ways like change .htaccess file and Many Ways.

-> See My Code

$.ajax({     type: 'POST',     url: 'Another Non Https Url',     crossDomain: true,     contentType:'application/json',     data:{CompanyEmail:CompanyEmail,CompanyName:CompanyName,CompanyPhoneNumber:CompanyPhoneNumber,AccessToken:AccessToken},     success: function(){         alert("Success");     },     error: function(){         alert("Failed");     } }) 

-> Here Note That I Send Data HTTPS To HTTP URL

Download script demo [LINK] [Origin]
Download script demo [LINK 2] [Onedrive] Download script demo [LINK 2] [Google drive]