Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/228.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Sencha Touch中的电子邮件表单详细信息给出异常_Php_Javascript_Sencha Touch_Sencha Touch 2 - Fatal编程技术网

Php Sencha Touch中的电子邮件表单详细信息给出异常

Php Sencha Touch中的电子邮件表单详细信息给出异常,php,javascript,sencha-touch,sencha-touch-2,Php,Javascript,Sencha Touch,Sencha Touch 2,我的页面中有一个表单。我想表单的详细信息,这是由用户填写,发送到一个特定的电子邮件 这是我的表格: xtype: 'formpanel', width: 300, height: 900,//recommended for the build url: 'contact.php', scrollable:false, items:[ {

我的页面中有一个表单。我想表单的详细信息,这是由用户填写,发送到一个特定的电子邮件

这是我的表格:

 xtype: 'formpanel',
            width: 300,
            height: 900,//recommended for the build
            url: 'contact.php',
            scrollable:false,
            items:[
                    {
                        xtype: 'textfield',
                        name : 'name',
                        label: 'Name',
                        labelWidth:100
                    },
                    {
                        xtype: 'textfield',
                        name : 'Date of birth',
                        label: 'Date of birth',
                        maxLength: 10,
                        labelWidth:120
                    },
                    {
                        xtype: 'textfield',
                        name : 'Nationality',
                        label: 'Nationality',
                        labelWidth:100
                    },
                    {
                        xtype: 'textfield',
                        name : 'City of Residence',
                        label: 'City of Residence',
                        labelWidth:170
                    },
                    {
                        xtype: 'textfield',
                        name : 'Country',
                        label: 'Country',
                        labelWidth:100
                    },                  
                    {
                        xtype: 'textfield',
                        name : 'Date',
                        label: 'Starting date of this course',
                        labelWidth:220
                    },
                    {
                        xtype: 'fieldset',
                        title: '3. Course to join',
                        items: [
                            {
                                xtype: 'selectfield',
                                label: 'Choose one',
                                labelWidth:120,
                                options: [
                                    {text: 'Ayurveda Massage (Ayurveda Yoga Massage)',  value: 'first'},
                                    {text: 'Ayur Balance Massage', value: 'second'},
                                    {text: 'Abhyanga Massage with Shirodhara',  value: 'third'}
                                ]
                            }
                        ]
                    },
                    {
                        xtype: 'numberfield',
                        name : 'Date',
                        label: 'Starting date of this course',
                        labelWidth:220
                    },
                    {
                        xtype: 'numberfield',
                        name : 'Your Phone',
                        label: 'Your Phone',
                        labelWidth:120
                    },
                    {
                        xtype: 'toolbar',
                        items: [
                            {
                                xtype: 'button',
                                height: 30,
                                text: 'Submit',
                                ui      : 'confirm',
                                handler : function(button) {
                                    this.up('formpanel').submit();
                                }
                            }
                        ]
                    }
                ]
以下是我的php脚本:

<?php
// Configuration Settings
$SendFrom =    "Form Feedback <jainishan@yahoo.in>";
$SendTo =      "ishan.fzd@gmail.com";
$SubjectLine = "Feedback Submission";


// Send E-Mail and Direct Browser to Confirmation Page
mail($SendTo, $SubjectLine, $MsgBody, "From: $SendFrom");
?>

点击表单按钮时,我收到以下异常:

您正在尝试解码无效的JSON字符串:
分析错误:语法错误,第11行的E:\softwares\Sencha dwnlds\xampp\htdocs\rasoviapp\contact.php中出现意外的“=”(T_CONCAT_EQUAL)

注意:“我在发送电子邮件时遇到了问题。我甚至不能发送基本的电子邮件。”

任何帮助都将是巨大的

谢谢
Ishan jain

您可以使用表单的
getValues()
方法获取表单数据,然后根据您的方便对其进行格式化,而不是直接提交。看看这个例子:

是否应该
xtype
的值是一个对象?看不到任何起始
{
或结束
}
。实际上,它是集成在vbox容器中的表单面板。我还没有把全班都发出去。这个观点运行得非常好。只有当我点击提交按钮时才会出现异常。谢谢您的关注,但先生,我的问题有所不同。我无法使用php脚本发送基本电子邮件。请帮帮我。