Jump to content

Problem Of Sending Email To User


masrawy

Recommended Posts

this is the code for delet <head> <style><!--div { font-size: 13px; font-family: Tahoma, "Times New Roman", serif; }div { margin: 0; padding: 0; }div.page { direction: rtl; width: 750px; height: auto; border: 1px solid #004488; border-top-width: 0px; border-bottom-width: 8px; margin-left: auto; margin-right: auto; }div.body { width: 750px; background-color:#FFFFFF; vertical-align: top; }div.boxH3 { background-color: #e8d68e; border: 1px solid #6699CC; border-bottom-width: 0; text-align: right; font-weight: bold; padding: 2px; color: #000000; }div.row { clear: both; width: 100%; padding: 1px 0 1px 0; text-align: center; }div.boxB { border: 1px solid #1875B5; background-color: #efe8d6; text-align: justify; padding: 2px; }div.boxH { background-color: #1875B5; border: 1px solid #1875B5; border-bottom-width: 0; text-align: center; font-weight: bold; padding: 2px; color: #FFFFFF; }span { font-size: 13px; font-family: Tahoma, "Times New Roman", serif; }.wng { color: red; font-weight: bold; }input { font-size: 13px; font-family: Tahoma, "Times New Roman", serif; }.s1 { font-size: 12px; }--></style> </head> <table border="1" width="95%" style="border-collapse: collapse" bordercolor="#1875B5" height="70"> <tr> <td bgcolor="#e8d68e" width="50%" style="border-right-style: none; border-right-width: medium" height="24"> <span lang="ar-eg"><b>  رد رقم (<?=$repid?>) بقلم: <a href="index.php?action=member_card&mem_id=<?=$member_id?>"><b><?=$name?></b> </a> </b></td> <td bgcolor="#e8d68e" width="50%" style="border-left-style: none; border-left-width: medium" height="24"> <p align="left"> <b><?=$date?></b></td> </tr> <tr> <td colspan="2" bgcolor="#efe8d6"> <? $replay=nl2br($replay); ?><?=$replay?></td> </tr><? $asmemr1_select = mysql_query ("SELECT * from ssubject where id='$ssub_id' and active='1'"); while ($Row515=mysql_fetch_array($asmemr1_select)) { $memberr_id = $Row515[mem_id]; $asmm_select = mysql_query ("SELECT * from members where id='$member_id' and active='1'"); while ($Row16=mysql_fetch_array($asmm_select)) { $speciall = $Row16 [special]; } }if ($special == "1" or $mem_id == $memberid){?> <tr> <td colspan="2" bgcolor="#efe8d6"> <p align="center"> <a href="index.php?action=delete_subject&rep_id=<? echo $repid; ?>&subjectid=<? echo $subjectid; ?>" ><span lang="ar-eg">حـــذف</span></a></td> </tr><? } else {}?> </table><br>

Link to comment
Share on other sites

  • Replies 304
  • Created
  • Last Reply
  • 2 weeks later...
so what can i do ?
Figure out where $rep_id is supposed to be coming from, and set the variable. It's probably coming from $_GET.
and another problem now when i register new member told me that the email usded with another member and i'm sur not?
Where's the code that does registration?
Link to comment
Share on other sites

Figure out where $rep_id is supposed to be coming from, and set the variable. It's probably coming from $_GET.can you plz wite the code to me to delet the repplay for the member if he like ?the register code itif($action == "submit"){br(); echo "<center><font size=4 face=\"Traditional Arabic\"><b>التسجيل</b></font></center>";br(); br();include ("template/style1/register_formm.tpl");}//----------------------------------------------------------------إدخال بيانات عضو جديدif($action == "insert_submit"){ fun_block_open("590","100%","#1875b5","#1875b5",$Msg['result']);if ($check != "on"){ echo "عذراً ... يجب الموافقة على اتفاقية استخدام الموقع حتى تتم عملية التسجيل بشكل جيد";}if ($check == "on"){ if ($password != "$repassword"){ echo "عذراً ... يجب أن تكون كلمةالمرور مطابقة لتأكيد كلمة المرور"; } if ($password == "$repassword"){ $selectn= mysql_query ("SELECT * from members where name='$name'"); $countn= mysql_num_rows($selectn); $selecte= mysql_query ("SELECT * from members where email='$email'"); $counte= mysql_num_rows($selecte); if ($countn != ""){ echo "عذراً...اسم المستخدم الذي اخترته موجود من قبل، حاول اختيار اسم آخر";}else {if ($counte != ""){ echo "عذراً...البريد الإلكتروني الذي وضعته موجود من قبل، يرجى كتابة بريد إلكتروني آخر";}else { $active_code = rand(0,999999);$subject="رابط تفعيل عضويتك بموقعنا";$message="السلام عليكم،،, <br>شكراً لتسجيلك في موقع $sitetitle، جراج الإنترنت العربي. <br>وأهلاً بك في أكبر تجمع تجاري عربي على الإنترنت، حيث يمكنك الآن، الإعلان مجاناً في موقع $sitetitle، والمشاركة مجاناً أيضاً في منتدى $sitetitle.<br>كما يمكنك الاستفادة من المميزات والصلاحيات الخاصة بك والموجودة في قسم إدارتك في موقع $sitetitle.<br>نرجوا منك الآن، الدخول على الرابط التالي أو نسخه ولصقه في المتصفح لديك، وذلك لتفعيل عضويتك: <br>http://www.aldleel.net/knoos/index.php?act...036;active_code<br>حيث يمكنك بعد ذلك الدخول على الموقع باستخدام: <br>اسم المستخدم: $name <br>كلمة السر: $password <br>ملاحظات هامة: - إذا لم تقم بالدخول على الموقع خلال ثلاثة أيام بعد وقت تسجيلك، فسوف تلغى عضويتك آلياً. <br>- نود التنويه إلى أن موقع $sitetitle لا يرسل رسائل إلكترونية تحتوي على ملفات مرفقة. فإذا وصلك أي بريد إلكتروني، ويبدو لك أنه مرسل من موقع $sitetitle، وهو يحتوي على ملف مرفق، فهو فيروس، ولم يُرسل من موقع $sitetitle مطلقاً، وننصحك بحذفه مباشرة. حيث قام هذا الفيروس بإرسال نفسه تحت اسم موقع $sitetitle، وذلك من أي جهاز في العالم.<br>..مع خالص تحياتنا <br><font color=#ff0000>www.aldleel.net/knoos </font><br> <font color=#0000ff> $sitetitle - جراج الإنترنت العربي</font>";@mail($email,$subject,$message,$headers); $INSERTVALUES = mysql_query("INSERT members VALUES ('','$name','$country','$city','$day','$month','$birth','$email','$email_case','$mobile','$tel','$ways','$password','$fullname','$vv','$education','$today_date','0','0','$active_code')");$INSERTVALUES = mysql_query("update members set active='1' WHERE active_code='$active_code'"); if($INSERTVALUES){echo "<center><b><font color=#339966>لقد تم تسجيلك عضواً في الموقع بنجاح. كما تم إرسال بريد إلكتروني إليك وذلك لتفعيل عضويتك في الموقع .</font><br><br> ملاحظات هامة :- يجب تفعيل عضويتك خلال مدة لا تتجاوز ثلاثة أيام ، وإلا فإن عضويتك ستحذف آلياً . <br>- إذا لم يصلك البريد الإلكتروني الخاص بالتفعيل الآن، فيرجى زيارة صفحة <a href=index.php?action=activemem&active_code=$active_code><span lang=ar-eg>تفعيل العضوية</span></a>. </b></center>";} else{echo "عذراً هناك مشكلة في عملية الإضافة <br> نرجو المحاولة مرة أخرى";} } } } } fun_block_close();echo "<meta http-equiv=\"refresh\" content=\"10; URL=index.php\">";}

Link to comment
Share on other sites

Add this line to the top of the delete part:$rep_id = $_GET['rep_id'];Check the links that you click to delete. If the ID to delete is called something other than "rep_id", then change what it says in $_GET.This is the code that checks the email:

$selecte= mysql_query ("SELECT * from members where email='$email'");$counte= mysql_num_rows($selecte);...if ($counte != ""){echo "عذراً...البريد الإلكتروني الذي وضعته موجود من قبل، يرجى كتابة بريد إلكتروني آخر";}

Add a line to print $email so you know what it is, or if it's even set. Also, mysql_num_rows returns a number, it returns the number of rows in the result. When you check the return value you're checking against an empty string, not a number. You should check if it is not equal to 0 instead.

Link to comment
Share on other sites

Add this line to the top of the delete part:$rep_id = $_GET['rep_id'];Check the links that you click to delete. If the ID to delete is called something other than "rep_id", then change what it says in $_GET.wher can i put this in index.phpand now the problem 2 for email if i dwenload the sql to the local server and do any thing to the sql and ypload it again this problem hapend but if i do the changes on the site not hapenabout the user flages how can i do ?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...