dongzhong2018 2014-01-19 14:40
浏览 66
已采纳

嵌入PHP联系我们表单到html文档

I have a html document and I want to embed a PHP contact form into the page. So far I have this, which I though should call the script to the page. But at the moment nothing is displaying, not sure what I've done wrong?

<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 code is as follows

> <?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(); ?>
  • 写回答

2条回答 默认 最新

  • donglv6747 2014-02-03 15:45
    关注

    Just to close this off. I actually used a different solution in the end. Its a pre built offering found here

    http://codecanyon.net/item/contact-form-generator-form-builder/1719810?ref=topstudio

    This solutions met all of my requirements.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器