$ _Post未定义变量var_dump [英] $_Post undefined variable var_dump

查看:89
本文介绍了$ _Post未定义变量var_dump的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,我正在创建我的第一个php表单,并且真的在为我在这里做错的事情而苦苦挣扎;

Hey I'm creating my first php form and really struggling with what I'm doing wrong here;

这是表格:

               <form method="post" action="includes/contact-process.php">

                    <table>
                        <tr>
                            <th>
                                <label for="name">Name</label>
                            </th>
                            <td>
                                <input type="text" name="name" id="name">
                            </td>
                        </tr>
                        <tr>
                            <th>
                                <label for="email">Email</label>
                            </th>
                            <td>
                                <input type="text" name="email" id="email">
                            </td>
                        </tr>
                        <tr>
                            <th>
                                <label for="message">Message</label>
                            </th>
                            <td>
                                <textarea name="message" id="message"></textarea>
                            </td>
                        </tr>                    
                    </table>
                    <input type="submit" value="Send">

                </form>

这是contact-process.php

and this is the contact-process.php

<?php

var_dump($_Post);

?>

这就是它不断返回的内容:
通知:未定义变量:_Post在第3行的\ includes \ contact-process.php中 NULL

and this is what it keeps returning:
Notice: Undefined variable: _Post in \includes\contact-process.php on line 3 NULL

推荐答案

应为 查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆