English 中文(简体)
传真形式与GoDaddy gdform.php提交问题
原标题:HTML form submit issues with GoDaddy gdform.php
  • 时间:2011-10-03 18:49:13
  •  标签:
  • html
  • forms

I apologize ahead of time if this is a newbie question, but I can t seem to find my answer anywhere.

因此,在我发出电子邮件时,我确实花了很短的时间来展示其提交的内容。

我在提交时收到一封电子邮件,但没有从我的表格中显示任何内容。

我正在利用GoDaddylav作为东道主,提供仿照。

我曾尝试过两种类型的文本/解释和复制;申请/x-www-form-urlencoded。

my form code is as follows:

<form id="myform" class="col col_8" action="gdform.php" method="post" enctype="text/plain">
    <input type="hidden" name="subject" value="Form Submission" />
    <fieldset class="s_column"> 
        <legend></legend>
        <div>
            <label for="email">email</label>
            <input type="email" id="email" required="required" class="box_shadow" title="Don t worry, I don t share" />
        </div>
        <div>
            <label for="phone">phone</label>
            <input type="tel" id="phone" required="required" class="box_shadow" title="In case of emergency" />
        </div>
        <div>
            <label for="name">name</label>
            <input type="text" id="name" required="required" class="box_shadow" title="What shall I call you, when I call you?" />
        </div>
        <div>
            <label for="url">url</label>
            <input type="url" id="url" class="box_shadow" title="If no url, share one that inspires you!" />
        </div>
        <div>
            <label for="phone">Budget</label>
            <input type="number" id="Budget" class="box_shadow" title="Dollars and Sense" />
        </div>
        <div class="textarea">
            <label for="textarea">Message</label>
            <textarea class="box_shadow" title="Whats on your mind?"></textarea>
        </div>
        <input type="submit" value="submit form &rarr;" />
    </fieldset>
</form>

您可在设计书.net/contact.html上查看表格页。

问题回答

They are not working because your dont have any of them named. Also you have the type wrong the type should always be text.

<input type="text" name="email" id="email">

唯一不同的意见是密码,因此你的类型是“密码”。 在您提交数据时,除非你使用jquery或javascript,否则你总是必须给它一个名字。 之后,上述代码将提交使用识别符号名称时所用的数值。 而且,在工作场所,你会得到这样的信息:

<?php
$email = $_POST[ email ];
?>

Just make sure you name all of the fields and change the type to text and it should work fine.





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签