我有一个html文档,我想在页面中嵌入一个PHP联系表单。到目前为止,我有这个,我应该将脚本调用到页面。但目前没有任何显示,不确定我做错了什么?
<section>
<header class="major">
<h2>Mini Case studies</h2>
</header>
<p>If you'd like to learn more, why not download the full case study. Just complete the details below.</p>
<iframe src="http://crea8tion.com/PP/contactus/form.php"></iframe>
<footer>
</footer>
</section>
Form.php代码如下
> <?php
>
> define('EMAIL_FOR_REPORTS', 'dano_w@hotmail.com');
> define('RECAPTCHA_PRIVATE_KEY', '@privatekey@'); define('FINISH_URI',
> 'Thank you for your interest. Click here to download the file.');
> define('FINISH_ACTION', 'redirect'); define('FINISH_MESSAGE', 'Thanks
> for filling out my form!
> http://online.wsj.com/public/resources/documents/Reprint_Samples.pdf');
> define('UPLOAD_ALLOWED_FILE_TYPES', 'doc, docx, xls, csv, txt, rtf,
> html, zip, jpg, jpeg, png, gif');
>
> require_once str_replace('\\', '/', __DIR__) . '/handler.php';
>
> ?>
>
> <?php if (frmd_message()): ?> <link rel="stylesheet"
> href="<?=dirname($form_path)?>/formoid-default-skyblue.css"
> type="text/css" /> <span class="alert
> alert-success"><?=FINISH_MESSAGE;?></span> <?php else: ?> <!-- Start
> Formoid form--> <link rel="stylesheet"
> href="<?=dirname($form_path)?>/formoid-default-skyblue.css"
> type="text/css" /> <script type="text/javascript"
> src="<?=dirname($form_path)?>/jquery.min.js"></script> <form
> class="formoid-default-skyblue"
> style="background-color:#FFFFFF;font-size:14px;font-family:'Open
> Sans','Helvetica
> Neue','Helvetica',Arial,Verdana,sans-serif;color:#666666;max-width:250px;min-width:150px"
> method="post"><div class="title"><h2>Please complete the below to
> access the download</h2></div> <div class="element-input"
> <?frmd_add_class("input")?>><label class="title">Full
> Name</label><input class="large" type="text" name="input" /></div>
> <div class="element-email" <?frmd_add_class("email")?>><label
> class="title">Email</label><input class="large" type="email"
> name="email" value="" /></div>
>
> <div class="submit"><input type="submit" value="Submit"/></div></form>
> <script type="text/javascript"
> src="<?=dirname($form_path)?>/formoid-default-skyblue.js"></script>
>
> <!-- Stop Formoid form--> <?php endif; ?>
>
> <?php frmd_end_form(); ?>
答案 0 :(得分:1)
我使用了this form。最好的部分是这台发电机还具有响应功能。
答案 1 :(得分:0)
关闭这个。我实际上最终使用了不同的解决方案。它是预制的产品,在这里找到了
http://codecanyon.net/item/contact-form-generator-form-builder/1719810?ref=topstudio
此解决方案符合我的所有要求。