I Can't Get Response From Ajax Request.

My code is below, any help will greatly appreciated. thanks





Template : My checkout.tpl

<[color=#e3e3ff]div [/color][color=#a6e22e]id=[/color][color=#e6db74]“result”[/color]>

[color=#75715e][/color]

div[/color]>



<[color=#e3e3ff]h2[/color]>You are not verified customer !h2[/color]>



<[color=#e3e3ff]form [/color][color=#a6e22e]class=[/color][color=#e6db74]“cm-ajax” [/color][color=#a6e22e]action=[/color][color=#e6db74]“index.php” [/color][color=#a6e22e]method=[/color][color=#e6db74]“post” [/color][color=#a6e22e]name=[/color][color=#e6db74]“send_sms”[/color]>

<[color=#e3e3ff]input [/color][color=#a6e22e]type=[/color][color=#e6db74]“hidden” [/color][color=#a6e22e]name=[/color][color=#e6db74]“result_ids” [/color][color=#a6e22e]value=[/color][color=#e6db74]“result” [/color]/>

<[color=#e3e3ff]div [/color][color=#a6e22e]class=[/color][color=#e6db74]“form-control send_sms_block”[/color]>

<[color=#e3e3ff]input [/color][color=#a6e22e]type=[/color][color=#e6db74]“text” [/color][color=#a6e22e]name=[/color][color=#e6db74]“country_code” [/color][color=#a6e22e]id=[/color][color=#e6db74]“country_code” [/color][color=#a6e22e]disabled value=[/color][color=#e6db74]“+1”[/color]/>

<[color=#e3e3ff]input [/color][color=#a6e22e]type=[/color][color=#e6db74]“text” [/color][color=#a6e22e]name=[/color][color=#e6db74]“carrier_code” [/color][color=#a6e22e]id=[/color][color=#e6db74]“carrier_code” [/color][color=#a6e22e]disabled value=[/color][color=#e6db74]“300”[/color]/>

<[color=#e3e3ff]i [/color][color=#a6e22e]class=[/color][color=#e6db74]“ty-icon-down-micro open_cr”[/color]>i[/color]>

<[color=#e3e3ff]input [/color][color=#a6e22e]type=[/color][color=#e6db74]“text” [/color][color=#a6e22e]name=[/color][color=#e6db74]“phone” [/color][color=#a6e22e]id=[/color][color=#e6db74]“phone”[/color]/>



<[color=#e3e3ff]div [/color][color=#a6e22e]class=[/color][color=#e6db74]“carrier_list hidden”[/color]>

<[color=#e3e3ff]ul[/color]>

<[color=#e3e3ff]li[/color]>301li[/color]>

<[color=#e3e3ff]li[/color]>302li[/color]>

ul[/color]>

div[/color]>

div[/color]>

<[color=#e3e3ff]div [/color][color=#a6e22e]class=[/color][color=#e6db74]“clearfix”[/color]>div[/color]>

<[color=#e3e3ff]input [/color][color=#a6e22e]class=[/color][color=#e6db74]“ty-btn ty-btn__big” [/color][color=#a6e22e]id=[/color][color=#e6db74]“send_sms” [/color][color=#a6e22e]type=[/color][color=#e6db74]“submit” [/color][color=#a6e22e]value=[/color][color=#e6db74]“Send Pin” [/color][color=#a6e22e]name=[/color][color=#e6db74]“dispatch[send_sms.send_sms]”[/color]/>

form[/color]>



Controller : send_sms.php



[color=#f92672]if [/color]($_SERVER[[color=#e6db74]'REQUEST_METHOD'[/color]] [color=#f92672]== [/color][color=#e6db74]'POST'[/color]) {

[color=#f92672]if [/color]($mode [color=#f92672]== [/color][color=#e6db74]'send_sms'[/color]) {

[color=#75715e] [/color]$status [color=#f92672]= [/color][color=#ae81ff]1[/color][color=#cc7832];[/color]

[color=#cc7832] [/color]$response [color=#f92672]= array[/color](

[color=#e6db74]'status' [/color]=>$status[color=#cc7832],[/color]

[color=#cc7832] [/color][color=#e6db74]'data' [/color]=>[color=#e6db74]'Hello WOrld'[/color][color=#cc7832],[/color]

[color=#75715e] [/color])[color=#cc7832];[/color]

[color=#75715e] [/color]$val[color=#f92672]=[/color][color=#a6e22e]json_encode/color[color=#cc7832];[/color]

[color=#cc7832] [/color]Registry[color=#f92672]::[/color][color=#a6e22e]get/color[color=#cc7832];[/color]

[color=#cc7832] [/color]Registry[color=#f92672]::[/color][color=#a6e22e]get/color[color=#f92672]->[/color][color=#a6e22e]assign[/color]([color=#e6db74]'result'[/color][color=#cc7832], [/color]$val)[color=#cc7832];[/color]

[color=#cc7832] [/color]}

[color=#f92672]exit[/color][color=#cc7832];[/color]

}