【发布时间】:2012-09-13 16:09:33
【问题描述】:
我在页面上有一个电子邮件地址列表,我想添加该功能,以便在单击电子邮件地址时打开一个电子邮件表单,该电子邮件地址已预先填写在收件人字段中。我该怎么做?
这是我已有的表格;
<?php echo $this->Form->create('Email', array('action'=>'email_send.php'));
echo $this->Form->input('email',array('label'=>'To: ')); //i want the email address i clicked on to be automatically placed here.
echo $this->Form->input('message',array('type'=>'textarea','label'=>'Message: '));
echo $this->Form->end('Send'); ?>
另外,如果有人对我将如何构建 email_send.php 文件以及传递变量和执行验证的最佳方式有任何提示,我也可以使用它。
【问题讨论】:
-
电子邮件是来自数据库还是硬编码?