如果我要为自己的网站设置此表格,我必须更改此联系表格的哪一部分?
Which part of this contact form I have to change if I am supposed to set up this form for my own website?
作为一个从未 created/designed 任何类型 "form actions" 的业余爱好者,我需要帮助才能将此表格用于我目前正在设计的网站。我觉得 "CSS" 和表单本身的结构没问题。只是想知道应该更改此联系表的哪一部分。将我的电子邮件地址放在哪里?
<div class="segment contact-form">
<div class="center-wrap">
<div class='gf_browser_unknown gform_wrapper holla-form_wrapper' id='gform_wrapper_1'>
<form method='post' enctype='multipart/form-data' id='gform_1' class='holla-form' action='http://mammothmedia.tv/contact/'>
<div class='gform_body'>
<ul id='gform_fields_1' class='gform_fields top_label form_sublabel_below description_below'>
<li id='field_1_1' class='gfield gfield_contains_required field_sublabel_below field_description_below'>
<label class='gfield_label' for='input_1_1'>First Name<span class='gfield_required'>*</span>
</label>
<div class='ginput_container'>
<input name='input_1' id='input_1_1' type='text' value='' class='medium' tabindex='1' />
</div>
</li>
<li id='field_1_8' class='gfield gfield_contains_required field_sublabel_below field_description_below'>
<label class='gfield_label' for='input_1_8'>Last Name<span class='gfield_required'>*</span>
</label>
<div class='ginput_container'>
<input name='input_8' id='input_1_8' type='text' value='' class='medium' tabindex='2' />
</div>
</li>
<li id='field_1_2' class='gfield gfield_contains_required field_sublabel_below field_description_below'>
<label class='gfield_label' for='input_1_2'>Email<span class='gfield_required'>*</span>
</label>
<div class='ginput_container'>
<input name='input_2' id='input_1_2' type='text' value='' class='medium' tabindex='3' />
</div>
</li>
<li id='field_1_3' class='gfield field_sublabel_below field_description_below'>
<label class='gfield_label' for='input_1_3'>Phone</label>
<div class='ginput_container'>
<input name='input_3' id='input_1_3' type='text' value='' class='medium' tabindex='4' />
</div>
</li>
<li id='field_1_6' class='gfield field_sublabel_below field_description_below'>
<label class='gfield_label' for='input_1_6'>Budget Range</label>
<div class='ginput_container'>
<input name='input_6' id='input_1_6' type='text' value='' class='medium' tabindex='5' />
</div>
</li>
<li id='field_1_5' class='gfield ginput_textarea field_sublabel_below field_description_below'>
<label class='gfield_label' for='input_1_5'>Comments</label>
<div class='ginput_container'>
<textarea name='input_5' id='input_1_5' class='textarea medium' tabindex='6' rows='10' cols='50'></textarea>
</div>
</li>
<li id='field_1_7' class='gfield ginput_subscribe field_sublabel_below field_description_below'>
<label class='gfield_label'></label>
<div class='ginput_container'>
<ul class='gfield_checkbox' id='input_1_7'>
<li class='gchoice_1_7_1'>
<input name='input_7.1' type='checkbox' value='Subscribe to our newsletter' id='choice_1_7_1' tabindex='7' />
<label for='choice_1_7_1' id='label_1_7_1'>Subscribe to our newsletter</label>
</li>
</ul>
</div>
</li>
<li id='field_1_9' class='gfield gform_validation_container field_sublabel_below field_description_below'>
<label class='gfield_label' for='input_1_9'>Comments</label>
<div class='ginput_container'>
<input name='input_9' id='input_1_9' type='text' value='' />
</div>
<div class='gfield_description'>This field is for validation purposes and should be left unchanged.</div>
</li>
</ul>
</div>
<div class='gform_footer top_label'>
<input type='submit' id='gform_submit_button_1' class='gform_button button' value='Submit' tabindex='8' onclick='if(window["gf_submitting_1"]){return false;} window["gf_submitting_1"]=true; ' />
<input type='hidden' class='gform_hidden' name='is_submit_1' value='1' />
<input type='hidden' class='gform_hidden' name='gform_submit' value='1' />
<input type='hidden' class='gform_hidden' name='gform_unique_id' value='' />
<input type='hidden' class='gform_hidden' name='state_1' value='WyJbXSIsIjA0OGE5MTQyNDdhM2NhZjFiMTc5Nzk5ZjM1ZTIzZjYzIl0=' />
<input type='hidden' class='gform_hidden' name='gform_target_page_number_1' id='gform_target_page_number_1' value='0' />
<input type='hidden' class='gform_hidden' name='gform_source_page_number_1' id='gform_source_page_number_1' value='1' />
<input type='hidden' name='gform_field_values' value='' />
</div>
</form>
</div>
<script type='text/javascript'>
jQuery(document).bind('gform_post_render', function(event, formId, currentPage) {
if (formId == 1) {
jQuery('#input_1_3').mask('(999) 999-9999').bind('keypress', function(e) {
if (e.which == 13) {
jQuery(this).blur();
}
});
}
});
jQuery(document).bind('gform_post_conditional_logic', function(event, formId, fields, isInit) {});
</script>
<script type='text/javascript'>
jQuery(document).ready(function({
jQuery(document).trigger('gform_post_render', [1, 1])
});
</script>
</div>
</div>
您使用的是哪种服务器端语言? PHP、ASP.NET 等?如果您正在尝试制作一个将电子邮件发送到电子邮件地址的表单,您将必须设置一些服务器端代码。现在它看起来像是将表单数据发送到 http://mammothmedia.tv/contact/,但是为电子邮件配置 smtp 将取决于您使用的服务器端语言。另一方面,您的网站看起来非常不错 ;)
编辑:
查看:http://www.freecontactform.com/email_form.php ,这应该让你开始。
您将无法使用它,因为此表单使用名为 Gravity Form's
的 WordPress 插件
大多数表单都使用 PHP
,您将无法从客户端获取 PHP
。
作为一个从未 created/designed 任何类型 "form actions" 的业余爱好者,我需要帮助才能将此表格用于我目前正在设计的网站。我觉得 "CSS" 和表单本身的结构没问题。只是想知道应该更改此联系表的哪一部分。将我的电子邮件地址放在哪里?
<div class="segment contact-form">
<div class="center-wrap">
<div class='gf_browser_unknown gform_wrapper holla-form_wrapper' id='gform_wrapper_1'>
<form method='post' enctype='multipart/form-data' id='gform_1' class='holla-form' action='http://mammothmedia.tv/contact/'>
<div class='gform_body'>
<ul id='gform_fields_1' class='gform_fields top_label form_sublabel_below description_below'>
<li id='field_1_1' class='gfield gfield_contains_required field_sublabel_below field_description_below'>
<label class='gfield_label' for='input_1_1'>First Name<span class='gfield_required'>*</span>
</label>
<div class='ginput_container'>
<input name='input_1' id='input_1_1' type='text' value='' class='medium' tabindex='1' />
</div>
</li>
<li id='field_1_8' class='gfield gfield_contains_required field_sublabel_below field_description_below'>
<label class='gfield_label' for='input_1_8'>Last Name<span class='gfield_required'>*</span>
</label>
<div class='ginput_container'>
<input name='input_8' id='input_1_8' type='text' value='' class='medium' tabindex='2' />
</div>
</li>
<li id='field_1_2' class='gfield gfield_contains_required field_sublabel_below field_description_below'>
<label class='gfield_label' for='input_1_2'>Email<span class='gfield_required'>*</span>
</label>
<div class='ginput_container'>
<input name='input_2' id='input_1_2' type='text' value='' class='medium' tabindex='3' />
</div>
</li>
<li id='field_1_3' class='gfield field_sublabel_below field_description_below'>
<label class='gfield_label' for='input_1_3'>Phone</label>
<div class='ginput_container'>
<input name='input_3' id='input_1_3' type='text' value='' class='medium' tabindex='4' />
</div>
</li>
<li id='field_1_6' class='gfield field_sublabel_below field_description_below'>
<label class='gfield_label' for='input_1_6'>Budget Range</label>
<div class='ginput_container'>
<input name='input_6' id='input_1_6' type='text' value='' class='medium' tabindex='5' />
</div>
</li>
<li id='field_1_5' class='gfield ginput_textarea field_sublabel_below field_description_below'>
<label class='gfield_label' for='input_1_5'>Comments</label>
<div class='ginput_container'>
<textarea name='input_5' id='input_1_5' class='textarea medium' tabindex='6' rows='10' cols='50'></textarea>
</div>
</li>
<li id='field_1_7' class='gfield ginput_subscribe field_sublabel_below field_description_below'>
<label class='gfield_label'></label>
<div class='ginput_container'>
<ul class='gfield_checkbox' id='input_1_7'>
<li class='gchoice_1_7_1'>
<input name='input_7.1' type='checkbox' value='Subscribe to our newsletter' id='choice_1_7_1' tabindex='7' />
<label for='choice_1_7_1' id='label_1_7_1'>Subscribe to our newsletter</label>
</li>
</ul>
</div>
</li>
<li id='field_1_9' class='gfield gform_validation_container field_sublabel_below field_description_below'>
<label class='gfield_label' for='input_1_9'>Comments</label>
<div class='ginput_container'>
<input name='input_9' id='input_1_9' type='text' value='' />
</div>
<div class='gfield_description'>This field is for validation purposes and should be left unchanged.</div>
</li>
</ul>
</div>
<div class='gform_footer top_label'>
<input type='submit' id='gform_submit_button_1' class='gform_button button' value='Submit' tabindex='8' onclick='if(window["gf_submitting_1"]){return false;} window["gf_submitting_1"]=true; ' />
<input type='hidden' class='gform_hidden' name='is_submit_1' value='1' />
<input type='hidden' class='gform_hidden' name='gform_submit' value='1' />
<input type='hidden' class='gform_hidden' name='gform_unique_id' value='' />
<input type='hidden' class='gform_hidden' name='state_1' value='WyJbXSIsIjA0OGE5MTQyNDdhM2NhZjFiMTc5Nzk5ZjM1ZTIzZjYzIl0=' />
<input type='hidden' class='gform_hidden' name='gform_target_page_number_1' id='gform_target_page_number_1' value='0' />
<input type='hidden' class='gform_hidden' name='gform_source_page_number_1' id='gform_source_page_number_1' value='1' />
<input type='hidden' name='gform_field_values' value='' />
</div>
</form>
</div>
<script type='text/javascript'>
jQuery(document).bind('gform_post_render', function(event, formId, currentPage) {
if (formId == 1) {
jQuery('#input_1_3').mask('(999) 999-9999').bind('keypress', function(e) {
if (e.which == 13) {
jQuery(this).blur();
}
});
}
});
jQuery(document).bind('gform_post_conditional_logic', function(event, formId, fields, isInit) {});
</script>
<script type='text/javascript'>
jQuery(document).ready(function({
jQuery(document).trigger('gform_post_render', [1, 1])
});
</script>
</div>
</div>
您使用的是哪种服务器端语言? PHP、ASP.NET 等?如果您正在尝试制作一个将电子邮件发送到电子邮件地址的表单,您将必须设置一些服务器端代码。现在它看起来像是将表单数据发送到 http://mammothmedia.tv/contact/,但是为电子邮件配置 smtp 将取决于您使用的服务器端语言。另一方面,您的网站看起来非常不错 ;)
编辑: 查看:http://www.freecontactform.com/email_form.php ,这应该让你开始。
您将无法使用它,因为此表单使用名为 Gravity Form's
的 WordPress 插件大多数表单都使用 PHP
,您将无法从客户端获取 PHP
。