尝试将表单数据提交到我的电子邮件地址。不太清楚代码有什么问题,因为没有数据被发送。
<!-- BEGIN SAMPLE FORM PORTLET-->
<div class="portlet box green ">
<div class="portlet-title">
<div class="caption"> <i class="fa fa-gift"></i> Horizontal Form</div>
<div class="tools"> <a href="" class="collapse">
</a>
<a href="#portlet-config" data-toggle="modal" class="config">
</a>
<a href="" class="reload">
</a>
<a href="" class="remove">
</a>
</div>
</div>
<div class="portlet-body form">
<form action="myemailaddress@gmail.com" method="post">
<form class="form-horizontal" role="form">
<div class="form-body">
<div class="form-group">
<label class="col-md-3 control-label">Block Help</label>
<div class="col-md-9">
<input type="text" class="form-control" placeholder="Enter text"> <span class="help-block">
A block of help text.
</span>
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">Inline Help</label>
<div class="col-md-9">
<input type="text" class="form-control input-inline input-medium" enter code hereplaceholder="Enter text"> <span class="help-inline">
Inline help.
</span>
</div>
</div>
<div class="form-group"></div>
</div>
</div>
<div class="form-actions fluid">
<div class="col-md-offset-3 col-md-9">
<button type="submit" class="btn green">Submit</button>
<button type="button" class="btn default">Cancel</button>
</div>
</div>
</form>
</div>
</div>
<!-- END SAMPLE FORM PORTLET-->
感谢您的帮助。
答案 0 :(得分:0)
您需要将表单操作设置为某种CGI脚本,该脚本能够捕获POST表单并将其格式化为电子邮件消息。 PHP,perl等...
这是基本的PHP示例... http://www.w3schools.com/php/php_forms.asp