有使用while循环.我想发送该特定单击按钮的onclick电子邮件. [英] There is while loop used. I want to send onclick email for that specific click button.

查看:90
本文介绍了有使用while循环.我想发送该特定单击按钮的onclick电子邮件.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在php中使用搜索页面
我想为我们的会员添加发送消息
所以我通过while循环获取了数据
发送消息按钮显示在每个成员中..

现在我单击特定的发送消息按钮以发送消息
打开发送消息的表格

有使用while循环.我想发送该特定单击按钮的onclick电子邮件.
下面的代码中也添加了发送邮件表格..
我的代码如下:

I use search page in php
and I want to add send message for our member
so I fetched data by while loop
send message button display in each and every member..

now I click on specific send messsage button for send message
open a form for send message

There is while loop used. I want to send onclick email for that specific click button.
send mail form is also added in below code..
my code is as below:

<a target="_blank" class="content_blue1" href="http://<?php echo $services['emailid'];?> " onClick="return popupnr(this, 'music',true)">


<?php



$emailid = $services['emailid'];

if($emailid==null)

        {

    ////    echo 'jagdish';

        }



else

    {

        echo "Sendmail";

        echo '</a>';
    }

    ?>

<form method="post" action="">
  Email: <input name="email" type="text" /><br />
  Message:<br />
  <textarea name="message" rows="15" cols="40">
  </textarea><br />
  <input type="submit" />
</form>

<?php



  $email = $_POST['email'] ;

  $message = $_POST['message'] ;



  mail( $emailid , "Feedback Form Results",   $message, "From: $email" );

    }



?>



plz ,,,, plz help



plz,,,,plz help

推荐答案

services ['emailid'];?> " onClick 返回popupnr(this,'music',true)" <? php
services['emailid'];?> " onClick="return popupnr(this, 'music',true)"> <?php


电子邮件ID
emailid =


服务[' 如果(
services['emailid']; if(


这篇关于有使用while循环.我想发送该特定单击按钮的onclick电子邮件.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆