Click here to Skip to main content
15,918,808 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
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:

XML
<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
Posted
Updated 6-Aug-12 0:28am
v3

1 solution

This question is illegible, but, the answer can only be, use the value you were passed to build a SQL query that searches for the data you want. The specifics are not clear to me, but that seems to be what you're saying you want to do.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900