Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/288.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 表单字段中有空格_Php_Forms - Fatal编程技术网

Php 表单字段中有空格

Php 表单字段中有空格,php,forms,Php,Forms,我的表单字段中有空格,如果我选择并删除此空格,我的预填充文本将显示备份。我不知道该怎么办,整天都在解决问题。有什么想法吗?这是我的密码 <?php include '_include/php/header.php'; #set variables to be used in the header $page_title = "Assesment"; ?> <div class="page" id="subheader"> <div class="contai

我的表单字段中有空格,如果我选择并删除此空格,我的预填充文本将显示备份。我不知道该怎么办,整天都在解决问题。有什么想法吗?这是我的密码

<?php
include '_include/php/header.php';
#set variables to be used in the header
$page_title = "Assesment";
?>
<div class="page" id="subheader">
    <div class="container">
        <!-- Title Page -->
        <div class="row">
            <div class="span12">
                <div class="title-page">
                    <h2 class="title">Four simple steps...</h2>
                    <h3 class="title-description">To dictate what you need
                    in a website</h3>
                </div>
            </div>
            </div><!-- End Title Page -->
            <!-- submenu -->
            <?php
            include '_include/php/submenu.php'; ?>
        </div>
        </div><!-- End sub header -->
        <!-- main Section -->
        <div class="page" id="contact">
            <div class="container">
                <!-- Title Page -->
                <div class="row">
                    <div class="span12">
                        <div class="title-page">
                            <h2 class="title">Assesment - Step One</h2>
                            <h3 class="title-description">Status: <span class=
                            "color-text"><?php echo $assessresult; ?></span></h3>
                        </div>
                    </div>
                    </div><!-- End Title Page -->
                    <!-- main Form -->
                    <div class="row">
                        <div class="span9">
                            <form action="assessment_submitted.php" class="contact-form" id="contact-form"
                                method="post" name="contact-form">
                                <h3 class="color-text">What do you wish to get out of
                                your website?</h3>
                                <p class="contact-message">
                                <textarea required cols="10" id="client-goals" name=
                                "client-goals" placeholder=
                                "What do you wish to acheive by having a website? ie. creating a web presence, expanding sales by creating an online market, networking, ect."
                                rows="5">
                                </textarea></p>
                                <h3 class="color-text">What key fatures are you looking
                                for?</h3>
                                <p class="contact-message">
                                <textarea required  cols="10" id="client-needs" name=
                                "client-needs" placeholder=
                                "What key features are you looking to have within your website? ie. storefront, social media intigrtion, a blogging platform, content managment system, ect."
                                rows="5">
                                </textarea></p>
                                <script type = "text/javascript" >
                                var i = 1;

                            function addUrl() {
                                    if (i < 3) {
                                        i++;
                                        var p = document.createElement('p');
                                        p.innerHTML =
                                            '<hr><textarea required  id="client-needs" placeholder="Add URL #' + i +
                                            '" name="example' + i +
                                            '" rows="1" cols="10"><\/textarea><input type="button" value="Remove added URL" onclick="removeUrl(this)">';
                                        document.getElementById('example').appendChild(p);
                                    } //END if
                                } //END addUrl function

                            function removeUrl(textarea) {
                                    textarea.parentNode.parentNode.removeChild(textarea.parentNode);
                                    i--;
                                } //END removeUrl function
                                </script>
                                <h3 class="color-text">Do you have and examples of what
                                you want?</h3>
                                <p class="contact-message" id="example">
                                <textarea cols="10" id="examples" name="example1"
                                placeholder="Do you know of any website like the one you want? ie. google.com, p5services.com, youtube.com"
                                rows="1">
                                </textarea></p><br>
                                <input onclick="addUrl()" type="button" value=
                                "Add url example">
                                <h3 class="color-text">Do you have a budget in
                                mind?</h3>
                                <p class="contact-message">
                                <textarea required cols="10" id="client-budget" name=
                                "client-budget" placeholder=
                                "Enter a budget, approximate or exact. This will help us decide if the scope of your project is in line with what you are interested in spending"
                                rows="2">
                                </textarea></p>
                                <h3 class="color-text">Do you have a timeline or
                                deadline?</h3>
                                <p class="contact-message">
                                <!-- <textarea id="client-deadline" placeholder="When do you need this done by?" name="client-deadline" rows="2" cols="10"></textarea> -->
                                <!-- <input id="client-deadline" name="client-deadline"
                                type="date"></p> -->
                                <!-- add a call to action for further services later -->
                                <h3 class="color-text">Any other comments?</h3>
                                <p class="contact-message">
                                <textarea cols="10" id="client-comments" name=
                                "client-comments" placeholder=
                                "Don't let us over look anything!" rows="5">
                                </textarea></p>
                                <p class="contact-submit"><input name=
                                "submit_assessment" type="submit" value=
                                "Save New Record"></p>
                                <div id="response"></div>
                            </form>
                        </div>
                        <div class="span3">
                            <div class="contact-details">
                                <h3><span class="font-icon-info"></span> Assesment
                                Objective</h3>
                                <p>The assesment section is used to define your needs
                                and help us decided what tool we need to impliment in
                                order to help you reach your goals</p>
                                <h4 class="color-text">After submitting this you will
                                recive a quote!</h4>
                            </div>
                        </div>
                        </div><!-- End main Form -->
                    </div>
                    </div><!-- End main Section -->
                    <?php
                    include '_include/php/footer.php'; ?>

四个简单的步骤。。。
口述你需要什么
在网站上
评估-第一步
地位:
你想从中得到什么
你的网站?

你在寻找什么关键的命运 对于

var i=1; 函数addUrl(){ 如果(i<3){ i++; var p=document.createElement('p'); p、 innerHTML= “
”; document.getElementById('example').appendChild(p); }//如果结束,则结束 }//END addUrl函数 函数removeUrl(textarea){ textarea.parentNode.parentNode.removeChild(textarea.parentNode); 我--; }//END removeUrl函数 你有什么例子吗 你想要什么?


你有预算吗 介意

你有时间表吗 最后期限?

还有其他意见吗?

检测评估 客观的 “评估”部分用于定义您的需求 并帮助我们决定需要使用什么工具 为了帮助你实现你的目标

提交此文件后,您将 收到报价!
textarea元素采用不同形式的占位符文本。您需要将其放在标签之间,如下所示:

<textarea>My text area placeholder text goes here</textarea>
我的文本区域占位符文本位于此处

您看到的然后删除以查看占位符的空间是由打开和关闭的textarea标记之间的换行引起的。textarea元素以不同的形式获取占位符文本。您需要将其放在标签之间,如下所示:

<textarea>My text area placeholder text goes here</textarea>
我的文本区域占位符文本位于此处

您看到的然后删除以查看占位符的空间是由打开和关闭的textarea标记之间的换行引起的。textarea元素以不同的形式获取占位符文本。您需要将其放在标签之间,如下所示:

<textarea>My text area placeholder text goes here</textarea>
我的文本区域占位符文本位于此处

您看到的然后删除以查看占位符的空间是由打开和关闭的textarea标记之间的换行引起的。textarea元素以不同的形式获取占位符文本。您需要将其放在标签之间,如下所示:

<textarea>My text area placeholder text goes here</textarea>
我的文本区域占位符文本位于此处

您看到的空间然后删除以查看占位符是由开始和结束文本区域标记之间的换行引起的

所有这些代码都相关吗?还是我们只需要看看表格?@James comment不应该是一个问题,我想这只是一个提示。。。。只发布最小的相关代码来概述您的problem@charlietfl所以你建议为相关问题开辟一条新的线索?我不同意你关于“评论不应该是一个问题”的观点。不,这根本不是我在说的@carlodurso。我对OP的理解比使用Hints的微妙方法更为切中要害。对不起,我误解了你的评论。所有这些代码都相关吗?还是我们只需要看看表格?@James comment不应该是一个问题,我想这只是一个提示。。。。只发布最小的相关代码来概述您的problem@charlietfl所以你是