Php 从表单到表的电子邮件地址输入
我正在尝试让表单输入用户名,并将@domain.com自动添加到表中。 我的表格代码是:Php 从表单到表的电子邮件地址输入,php,Php,我正在尝试让表单输入用户名,并将@domain.com自动添加到表中。 我的表格代码是: <th>Owner Emaill: * <td><input type="text" name="email" value="<?php echo $email; ?>" />@informatica.com </td></tr> Owner Emaill:如果您也想显示它: echo '<td><a href="
<th>Owner Emaill: * <td><input type="text" name="email" value="<?php echo $email; ?>" />@informatica.com </td></tr>
Owner Emaill:如果您也想显示它:
echo '<td><a href="mailto:'.$row['email'].'@informatica.com">' . $row['email'].'@informatica.com</a></td>';
echo';
您现在得到了什么结果?是否要附加域名?echo“”;你为什么不把域名连接到$row['email']?@PhpDev我只是在表中得到用户名,而没有域名
echo '<td><a href="mailto:'.$row['email'].'@informatica.com">' . $row['email'].'@informatica.com</a></td>';