Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/252.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 - Fatal编程技术网

如何让表单上的输入标记彼此上方列出?并连接到我的PHP页面?

如何让表单上的输入标记彼此上方列出?并连接到我的PHP页面?,php,Php,页面?我试着把它们列在一个列表中,但运气不好,有没有办法让它们列出来 没有li标签?action--my page是连接PHP的正确方法吗?如果是这样,怎么办 然后我会将我的感谢页面连接到提交按钮吗 谢谢 How can I get my input tags on my form to list above each other?And connect to my PHP 你的留言* 发送消息 然后将其放置在表的行中或包装div中包含的堆叠div中。您只需在每个表单元素后添加一个,即可

页面?我试着把它们列在一个列表中,但运气不好,有没有办法让它们列出来

没有li标签?action--my page是连接PHP的正确方法吗?如果是这样,怎么办

然后我会将我的感谢页面连接到提交按钮吗

谢谢

 How can I get my input tags on my form to list above each other?And connect to my PHP 

你的留言*
发送消息

然后将其放置在表的行中或包装div中包含的堆叠div中。

您只需在每个表单元素后添加一个

,即可将其列出来。例如:

       <div id="container">

    <fieldset id="contact_form">
                       <form id="cform" name="cform" method="post" action="process.php">

              <input type="text" id="name" name="name" value="Full Name*" onfocus="if(this.value == 'Full Name*') this.value = ''"
                                onblur="if(this.value == '') this.value = 'Full Name*'" style="position: relative"/> 
              <input type="text" id="email" name="email" value="Email Address*" onfocus="if(this.value == 'Email Address*') this.value = ''"
                                onblur="if(this.value == '') this.value = 'Email Address*'" style="position: relative"/> 
               <input type="text" id="subject" name="subject" value="Subject*" onfocus="if(this.value == 'Subject*') this.value = ''"
                                onblur="if(this.value == '') this.value = 'Subject*'" style="position: relative"/> 
             <textarea id="msg" name="message" onfocus="if(this.value == 'Your Message*') this.value = ''"
                                onblur="if(this.value == '') this.value = 'Your Message*'"style="position: relative">Your Message*</textarea> 
               <button id="submit" class="button" action="thanks.html"style="position: relative"> Send Message</button> 

              </form>
            </fieldset>
    </div

    Here is the css...  

      input {
        border: 5px solid white; 
        -webkit-box-shadow: 
          inset 0 0 8px  rgba(0,0,0,0.1),
                0 0 16px rgba(0,0,0,0.1); 
        -moz-box-shadow: 
          inset 0 0 8px  rgba(0,0,0,0.1),
                0 0 16px rgba(0,0,0,0.1); 
        box-shadow: 
          inset 0 0 8px  rgba(0,0,0,0.1),
                0 0 16px rgba(0,0,0,0.1); 
        padding: 15px;
        background: rgba(255,255,255,0.5);
        margin: 0 0 10px 0;
    }




     #contact_form input{
     background:#ffffff;
     position:list-style: 5;}

    fieldset#contact_form 
    {width:100%;
    float:left;
    height:100%;}




    #submit{ border: 5px solid white; 
        -webkit-box-shadow: 
          inset 0 0 8px  rgba(0,0,0,0.1),
                0 0 16px rgba(0,0,0,0.1); 
        -moz-box-shadow: 
          inset 0 0 8px  rgba(0,0,0,0.1),
                0 0 16px rgba(0,0,0,0.1); 
        box-shadow: 
          inset 0 0 8px  rgba(0,0,0,0.1),
                0 0 16px rgba(0,0,0,0.1); 
        padding: 15px;
        background:#ffffff;
        margin: 0 0 10px 0;}


    fieldset#contact_form textarea{width:60.0%;
    background:#ffffff;
    height:150px;
        border: 5px solid white; 
        -webkit-box-shadow: 
          inset 0 0 8px  rgba(0,0,0,0.1),
                0 0 16px rgba(0,0,0,0.1); 
        -moz-box-shadow: 
          inset 0 0 8px  rgba(0,0,0,0.1),
                0 0 16px rgba(0,0,0,0.1); 
        box-shadow: 
          inset 0 0 8px  rgba(0,0,0,0.1),
                0 0 16px rgba(0,0,0,0.1); 
        padding: 15px;
        background:#ffffff;
        margin: 0 0 10px 0;}

`

谢谢你,真是太棒了!但是,如果我改变了操作,我将如何将我的Html链接到我的php页面?谢谢
<input type="text" id="name" name="name" value="Full Name*" ...  /><br />
<form id="cform" name="cform" method="post" action="process.php">
header( 'Location: http://www.yoursite.com/thanks.html' ) ;