Jump to content

sonita

Members
  • Posts

    52
  • Joined

  • Last visited

Everything posted by sonita

  1. hello i use skitter 's jquery plugin for my slideshow gallery in my website.I create my web with Bootstrap and it is respansive. but Built gallery with Skitter's jquery plugin isn't respansive .i want to respansive this gallery but i don't know how? i search about it but could not find .please help me :Sad:.
  2. hi I want to click on the photos using JavaScript and jQuery, I've made a gallery slide show click on the first picture < div> made one after another <ul> Made since< li>, And photos within< li> And < img> tags. I and Slideshow mode to activate it, but I do not know how to do this please help. i don't know how i create that,please help me....
  3. my complate code is this:,but don't work: $(function () { var class_name = $(':text#name').val(); var classCapacity = $(':text#capacity').val(); var selectedItem; var studentName = $(':text#st_name').val(); var studentAge = $(':text#st_age').val(); // var cap = $(':text#capacity').val(); // var my_html = '<option value='"+cap"'>' + class_name + '</option>'; $('#btnAdd').click(function () { //$('#compo').append(my_html); //$('#combo').append("<option>h</option>"); alert('test'); }); $('#btnAdd1').click(function () { alert('test1'); }); }); if i remove comment line ,this code don't work nut when i put comment ,with clickbutton show alert().why? plaese help me. very very important.
  4. Hi i have two input[ type =text] and I want the user to enter a class name and a capacity to provide the desired class, Then click on the button btnAdd[input type=button](this name is Addcategory in the attach image),Read the user entered values​​, and then make a combobox and it will add value to it. i write this ,but don't work ,please help me. $('<option></option>').html(className+","+classCapacity).appendTo('article#leftcol > div#box2 > div.wrap > select#combo'); i want ,when the click in button ,create this comboBox ,but i don't undrestand ,where i make a mistake. this code is a my javascript code: $(function () { var Box= $('section>article#leftcol>div#box2').hide(); var className = $(':text#name').val(); var classCapacity = $(':text#capacity').val(); $('#btnAdd').click(function () { Box.fadeIn(1000); $('<option></option>').html(className + "," + classCapacity).appendTo('article#leftcol > div#box2 > div.wrap > select#combo'); }); $('#btnAdd1').click(function () { alert('test'); }); }); please help me?????????
  5. sorry ,i can't mail() function in the my contact page with phpmailer. please more explain me. i read & see above link,but i don't undrestand. how do i replace phpmailer function with mail() function a contact page's code? please help me.
  6. i know below code is a class.phpmailer.php , and i must to use this code and create a new object of this class <?phpclass Emailer{ private $sender; private $recipients; private $subject; private $body; public function __construct($sender){ $this->sender=$sender; $this->recipients=array(); } public function AddRecipients($recipients){ array_push($this->recipients,$recipients); } public function SetSubject($subject){ $this->subject=$subject; } public function SetBody($body){ $this->body=$body; } public function SendEmail(){ foreach($this->recipients as $recipient){ $result=mail($recipient,$this->subject,$this->body,"From: {$this->sender}rn"); if($result){ echo "Mail successfully sent to {$recipient}<br/>".PHP_EOL; } } }}?> but i don'tknow how do i change contactpage 's code ?& how do i write mycontact page with phpmailer? Mail server and authentication issues that I put into it, I also wanted to be able to send email. please help me very very important because myweb is in the internet....
  7. hello this code is a my contact page's code & i use mail() function but myhost don't support this function and don't send Email to myemail address(info@keivanstone.ir) my host support phpmailer only <?php//session_start(); #was missing//ini_set("display_errors",1); #remove this on production, needed it to see any errors$php_self = $_SERVER['PHP_SELF'];//$error_name = " you don't enter name.please enter you name.";// on submit$mail_sent=0;$error_name = $error_email = $error_subject=$error_body = $error_captcha = '';if( isset($_POST['name']) && isset($_POST['email'])&&isset($_POST['subject']) && isset($_POST['body']) && isset($_POST['captcha']) ){ $name = $_POST['name']; $email = $_POST['email']; $subject = $_POST['subject']; $body = $_POST['body']; $captcha = $_POST['captcha']; $error = 0; // name if( $name == "" ){ $error=1; $error_name = "class='error'"; } // email if( $email == "" ){ $error=2; $error_email = "class='error'"; } // subject if( $subject == "" ){ $error=3; $error_subject = "class='error'"; } // body if( $body == "" ){ $error=4; $error_body = "class='error'"; } // captcha if( $captcha == "" || $captcha != $_SESSION['captcha']){ $error=5; $error_captcha = "class='error'"; } // no error, send email if( $error == 0){ // your email address $address = "info@keivanstone.ir"; // email subject $subject = "New body"; // email content $content = "$name,$email,$body"; // html email$email_content = "<!doctype html><head><meta charset='utf-8'><title>".$subject."</title>"; $email_content .= "</head><body>"; $email_content .= $content; $email_content .= "</body></html>"; // headers for html email $headers = 'MIME-Version: 1.0' . "/r/n"; $headers .= 'Content-type: text/html; charset=utf-8' . "/r/n"; $headers .= "From: info@keivanstone.ir" . "/r/n"; // send email mail($address, $subject, $email_content, $headers); // reset variables $name = ""; $email = ""; $body = ""; $mail_sent = 1; }}else{ $name = $email = $subject= $body = $captcha = ''; }// captcha$num = rand(1, 40);$num2 = rand(5, 25); $verif = $num . "+" . $num2;$_SESSION['captcha'] = $num + $num2; if( $mail_sent == 1 ){ echo "<h4>از تماس شما سپاسگزاریم.<br/>تا48 ساعت آینده پاسخ خود را دریافت خواهید کرد.<br/>گروه سنگ آنتیک کیوان</h4>";} else { echo " <form action='".$php_self."' method='post'> <p><label for='name'>نام:</label> <span class='required'>*</span></p> <input type='text' ".$error_name." name='name' value='".$name."'> <p><lable for='email'>پست الکترونیک:</label> <span class='required'>*</span></p> <input type='text' ".$error_email." name='email' value='".$email."'> <p><label for='subject'>موضوع:</label> <span class='required'>*</span></p> <input type='text' ".$error_subject." name='subject' value='".$subject."'> <p><label for='body'>پیام شما:</label> <span class='required'>*</span></p> <textarea ".$error_body." id='body' name='body' style='width:460px;height:119px;'>".$body."</textarea> <p><label>جمع دوعدد:".$verif."?</label> <span class='required'>*</span></p> <input type='text' ".$error_captcha." id='captcha' name='captcha' value=''><br/> <input type='submit' value='ارسال'/> </form>";}?> i must change above code & replace with phpmailer... More questions in the next post I write.
  8. hi i create a contact form,and write with mail() function.my host don't support this function and i must to use phpmailer in my contact's page code.but i don't know phpmailer? and i don't know how do i that in my contact page? i know,i must to change mycode in contact page,but i don't know how do i? please help me. & explain me for a example
  9. i replace my code with above code you says but showing error,what's mening this errors. Notice: Undefined variable: nameپست in contact.php on line 102 myline 102 is :" $content = "نام:$nameپست الکترونیک:$emailپیام شما:$body";" Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in contact.php on line 114 my line 114 is:[ mail($address, $subject, $email_content, $headers); ] please help me again. thanks alot
  10. hello, i write session_start() above html tags ,this code is a compelate code my contact page(under code) <?phpsession_start();ob_start();error_reporting(-1);require_once 'config.php';require_once 'header.php';require_once 'db.php';require_once 'category.php';?><!DOCTYPE html><html><head><meta charset="utf8"/><title>گروه سنگ آنتیک کیوان</title><link rel="stylesheet" href="formstyle.css" /></head><body> <div id="content"> <div id="rightCol"> <div class="sidebar"> <ul> <li><span>راهنما</span> <ul> <li><a href="kharid.php">راهنمای خرید</a></li> <li><a href="pardakht.php">راهنمای پرداخت</a></li> <li><a href="helpcontact.php">راهنمای تماس باما</a></li> </ul> </li> <li><span>درباره ما</span> <ul> <li><a href="factory.php">درباره کارخانه</a></li> <li><a href="manager.php">درباره مسئولان</a></li> </ul> </li> <li> <span><a href="contact.php">ارتباط با ما</a></span> </li> <!--<li> <span><a href="support.php">پشتیبانی</a></span> </li> <li><span>واحدفروش</span> <ul> <li><a href="sefaresh.php">سفارش محصول</a></li> <li><a href="peygiri.php">پیگیری سفارش</a></li> </ul> </li>--> </ul> </div><!-- sidebar3--> </div><!--rightCol--> <div id="leftCol"> <div class="h1">فرم تماس با ما</div> <div class="masir"> <?php echo 'دسته بندی: ' . DisplayPath(5);?> </div><!--masir--> <div id="formtamas"> <?php$php_self = $_SERVER['PHP_SELF'];//$error_name = " you don't enter name.please enter you name.";// on submit$mail_sent=0;$error_name = $error_email = $error_subject=$error_body = $error_captcha = '';if( isset($_POST['name']) && isset($_POST['email'])&&isset($_POST['subject']) && isset($_POST['body']) && isset($_POST['captcha']) ){ $name = $_POST['name']; $email = $_POST['email']; $subject = $_POST['subject']; $body = $_POST['body']; $captcha = $_POST['captcha']; $error = 0; // name if( $name == "" ){ $error ++; $error_name = "class='error'"; } // email if( $email == "" ){ $error ++; $error_email = "class='error'"; } // subject if( $subject == "" ){ $error ++; $error_subject = "class='error'"; } // body if( $body == "" ){ $error ++; $error_body = "class='error'"; } // captcha if( $captcha == "" || $captcha != $_SESSION['captcha']){ $error ++; $error_captcha = "class='error'"; } // no error, send email if( $error == 0){ // your email address $address = "info@keivanstone.ir"; // email subject $subject = "New body"; // email content $content = "نام:$nameپست الکترونیک:پیام شما:$email$body"; // html email $email_content = "<!doctype html><head><meta charset='utf-8'><title>".$subject."</title>"; $email_content .= "</head><body>"; $email_content .= $content; $email_content .= "</body></html>"; // headers for html email $headers = 'MIME-Version: 1.0' . "/r/n"; $headers .= 'Content-type: text/html; charset=utf-8' . "/r/n"; $headers .= "From: info@keivanstone.ir <>" . "/r/n"; // send email mail($address, $subject, $email_content, $headers); // reset variables $name = ""; $email = ""; $body = ""; $mail_sent = 1; }}else{ $name = $email = $subject= $body = $captcha = ''; }// captcha$num = rand(1, 40);$num2 = rand(5, 25); $verif = $num . "+" . $num2;$_SESSION['captcha'] = $num . $num2; if( $mail_sent == 1 ){ echo "<h1>از تماس شما سپاسگزاریم.تا48 ساعت آینده پاسخ خود را دریافت خواهید کرد.<br/>گروه سنگ آنتیک کیوان</h1>";} else { echo " <form action='".$php_self."' method='post'> <p><label for='name'>نام:</label> <span class='required'>*</span></p> <input type='text' ".$error_name." name='name' value='".$name."'> <p><lable for='email'>پست الکترونیک:</label> <span class='required'>*</span></p> <input type='text' ".$error_email." name='email' value='".$email."'> <p><label for='subject'>موضوع:</label> <span class='required'>*</span></p> <input type='text' ".$error_subject." name='subject' value='".$subject."'> <p><label for='body'>پیام شما:</label> <span class='required'>*</span></p> <textarea ".$error_body." id='body' name='body' style='width:460px;height:119px;'>".$body."</textarea> <p><label>جمع دوعدد:".$verif."?</label> <span class='required'>*</span></p> <input type='text' ".$error_captcha." id='captcha' name='captcha' value=''><br/> <input type='submit' value='ارسال'/> </form>";}?> <div id="payam"> <div><span>منتظر تماس شما هستیم.</span> <ul> <li><span>1-ارتباط مستقیم با مدیران کیوان</span></li> <li><span>2-کسب اطلاعات درباره محصولات ما</span></li> <li><span>3-نظرات سازنده شما</span></li> <li><span>4-انتقادات وشکایات شما</span></li> <li><span>5-و.....</span></li> <li><span>همه و همه از طریق این صفحه</span></li> </ul> <span id="keivan">باتشکر<br/>گروه سنگ آنتیک کیوان</span> </div> </div><!--payam--> </div><!--formtamas--> </div><!--leftCol--> <div class="clr"></div> </div><!--end of content--> <div id="footer">حقوق این وبگاه متعلق به گروه سنگ آنتیک کیوان می باشد.</div> </body></html><?phpob_end_flush();?> I should make it into php tag I added it to work?And send email?or no i do else things? please help me...
  11. Hello I have a website & upload this in internet and this links is a url for mywebsite http://www.keivanstone.ir i have a contact page and a contact's form inside this page but I would fill all fields and submit button, I can not be emailed.'s This? What do I have to be true. And the user is able to send email. this code is a my contact page <?php$php_self = $_SERVER['PHP_SELF'];//$error_name = " you don't enter name.please enter you name.";// on submit$mail_sent=0;$error_name = $error_email = $error_subject=$error_body = $error_captcha = '';if( isset($_POST['name']) && isset($_POST['email'])&&isset($_POST['subject']) && isset($_POST['body']) && isset($_POST['captcha']) ){ $name = $_POST['name']; $email = $_POST['email']; $subject = $_POST['subject']; $body = $_POST['body']; $captcha = $_POST['captcha']; $error = 0; // name if( $name == "" ){ $error ++; $error_name = "class='error'"; } // email if( $email == "" ){ $error ++; $error_email = "class='error'"; } // subject if( $subject == "" ){ $error ++; $error_subject = "class='error'"; } // body if( $body == "" ){ $error ++; $error_body = "class='error'"; } // captcha if( $captcha == "" || $captcha != $_SESSION['captcha']){ $error ++; $error_captcha = "class='error'"; } // no error, send email if( $error == 0){ // your email address $address = "info@keivanstone.ir"; // email subject $subject = "New body"; // email content $content = "نام:$nameپست الکترونیک:پیام شما:$email$body"; // html email $email_content = "<!doctype html><head><meta charset='utf-8'><title>".$subject."</title>"; $email_content .= "</head><body>"; $email_content .= $content; $email_content .= "</body></html>"; // headers for html email $headers = 'MIME-Version: 1.0' . "/r/n"; $headers .= 'Content-type: text/html; charset=utf-8' . "/r/n"; $headers .= "From: info@keivanstone.ir <>" . "/r/n"; // send email mail($address, $subject, $email_content, $headers); // reset variables $name = ""; $email = ""; $body = ""; $mail_sent = 1; }}else{ $name = $email = $subject= $body = $captcha = ''; }// captcha$num = rand(1, 40);$num2 = rand(5, 25); $verif = $num . "+" . $num2;$_SESSION['captcha'] = $num . $num2; if( $mail_sent == 1 ){ echo "<h1>از تماس شما سپاسگزاریم.تا48 ساعت آینده پاسخ خود را دریافت خواهید کرد.<br/>گروه سنگ آنتیک کیوان</h1>";} else { echo " <form action='".$php_self."' method='post'> <p><label for='name'>نام:</label> <span class='required'>*</span></p> <input type='text' ".$error_name." name='name' value='".$name."'> <p><lable for='email'>پست الکترونیک:</label> <span class='required'>*</span></p> <input type='text' ".$error_email." name='email' value='".$email."'> <p><label for='subject'>موضوع:</label> <span class='required'>*</span></p> <input type='text' ".$error_subject." name='subject' value='".$subject."'> <p><label for='body'>پیام شما:</label> <span class='required'>*</span></p> <textarea ".$error_body." id='body' name='body' style='width:460px;height:119px;'>".$body."</textarea> <p><label>جمع دوعدد:".$verif."?</label> <span class='required'>*</span></p> <input type='text' ".$error_captcha." id='captcha' name='captcha' value=''><br/> <input type='submit' value='ارسال'/> </form>";}?> my web is a persian website with farsi language.. Which part of this code is wrong, do not send an email? please help me,very very important Because my website on the internet
  12. Hi i want to create a login/registration system my web site,but i dont know how do make it with php? please help me Please help me so I can learn how to build such a system. Please if anyone knows about the educational website and link it to me, let me introduce
  13. hello I download prestashop for online store in my website but i don`t know how use that. please help me. i look at in your website(prestashop.com) but i don`t underestand how to use that orI do not know which page to read. i don`t know how install prestashop in wamp & mycomputet & The rest of the settings Prstashap To use it on my website Build an online store on my website. please help me ,very very important Please explain them to me step by step. I'm able to use it. thanks
  14. i change $sql to mysql_query in above code and test it again but don`t save my information in database .why? how do i? please help me?
  15. this is form .php code: <?phpob_start();require_once 'config.php';require_once 'header.php';require_once 'db.php';require_once 'category1.php';?><!doctype html><html dir="rtl"><head><meta charset="utf8"/><title><?php echo TITR;?></title><link rel="stylesheet" type="text/css" href="style.css" /><link rel="stylesheet" type="text/css" href="formsefaresh.css" /><script type="text/javascript"><script type="text/javascript">function validateForm(){var product_cod=document.forms["formsefaresh"]["product_cod"].value;var _err=document.getElementById("err");if(product_cod=null || product_cod==""){_err.innerHTML +="کدمحصول واردنشده یا اشتباه وارد شده است.لطفاکدمحصول راصحیح واردفرمایید.";return false;}var cufrist_name=document.forms["formsefaresh"]["cufirst_name"].value;var _err=document.getElementById("err");if(cufrist_name=null || cufrist_name=="" || cufrist_name <'3'){_err.innerHTML +="نام شما کمترازسه حرف میباشد لطفا نام خودراصحیح وکامل واردنمایید.";return false;} var culast_name=document.forms["formsefaresh"]["culast_name"].value;var _err=document.getElementById("err");if(culast_name=null || culast_name=="" || culast_name <'3'){_err.innerHTML +="نام خانوادگی شماکمترازسه حرف می باشد لطفا نام خانوادگی خود را صحیح واردنمایید.";return false;}var phone=document.forms["formsefaresh"]["phone"].value;var _err=document.getElementById("err");if(phone=null || phone=="" || phone <10){_err.innerHTML +="تلفن واردشده کمتراز ده رقم میباشد،لطفا تلفن خود راصحیح واردنمایید.";return false;} var mobile=document.forms["formsefaresh"]["mobile"].value;var _err=document.getElementById("err");if(mobile=null || mobile=="" || mobile<10){_err.innerHTML +="شماره همراه واردشده کمتراز ده رقم میباشد،لطفا شماره همراه خود را صحیح وارد نمایید.";return false;} var mobile=document.forms["formsefaresh"]["mobile"].value;var _err=document.getElementById("err");if(mobile=null || mobile==""){_err.innerHTML +="";return false;}var address=document.forms["formsefaresh"]["address"].value;var _err=document.getElementById("err");if(address=null || address=="" ){_err.innerHTML +="آدرس خود را وارد نکرده اید.لطفا آدرس کامل خود را بطور صحیح واردنمایید.";return false;} var address=document.forms["formsefaresh"]["email"].value;var _err=document.getElementById("err");if(email=null || email=="" ){_err.innerHTML +="آدرس ایمیل خود را واردنکرده اید یا معتبرنمیباشد،لطفا آدرس ایمیل معتبر واردنمایید.";return false;} var product_name=document.forms["formsefaresh"]["product_name"].value;var _err=document.getElementById("err");if(product_name=null || product_name=="" ){_err.innerHTML +="نام محصول موردنظررا واردنکرده اید،لطفاآنراواردنمایید.";return false;} var product_bod=document.forms["formsefaresh"]["product_bod"].value;var _err=document.getElementById("err");if(product_bod=null || product_bod=="" ){_err.innerHTML +="ابعاد موردنظر شما واردنشده است ،لطفا ابعادموردنیاز محصول موردنظرتان را واردنمایید.";return false;}var gheymatevahed=document.forms["formsefaresh"]["gheymatevahed"].value;var _err=document.getElementById("err");if(gheymatevahed=null || gheymatevahed=="" ){_err.innerHTML +="قیمت واحد محصول موردنظر را واردنکرده اید،لطفا قیمت واحد را واردنمایید.";return false;} var etebaregheymat=document.forms["formsefaresh"]["etebaregheymat"].value;var _err=document.getElementById("err");if(etebaregheymat=null || etebaregheymat=="" ){_err.innerHTML +="اعتبارقیمت محصول موردنظرخودراواردنکرده اید،لطفا آن را واردنمایید.";return false;} var mizanesefaresh=document.forms["formsefaresh"]["mizanesefaresh"].value;var _err=document.getElementById("err");if(mizanesefaresh=null || mizanesefaresh=="" ){_err.innerHTML +="میزان سفارش خود را واردنکردهاید،لطفامیزان سفارش خود را واردنمایید.";return false;}var tedadehaml=document.forms["formsefaresh"]["tedadehaml"].value;var _err=document.getElementById("err");if(tedadehaml=null || tedadehaml=="" ){_err.innerHTML +="تعداد حمل موردنظر خود را واردنکرده اید،لطفاآنرا مشخص و واردنمایید.";return false;} var payment=document.forms["formsefaresh"]["payment"].value;var _err=document.getElementById("err");if(payment=null || payment=="" ) {_err.innerHTML +="نحوه پرداخت سفارش را واردنکرده اید،لطفا آنرا وارد نمایید.";return false;} var tarikhsefaresh=document.forms["formsefaresh"]["tarikhsefaresh"].value;var _err=document.getElementById("err");if(tarikhsefaresh=null || tarikhsefaresh=="" ) {_err.innerHTML +="فیلد تاریخ سفارش خالی است،لطفاتاریخ سفارش خود را واردنمایید.";return false;} var color=document.forms["formsefaresh"]["color"].value;var _err=document.getElementById("err");if(color=null || color=="" ) {_err.innerHTML +="رنگ محصول موردنظر خود را واردنکرده اید،لطفا رنگ موردنظر برای سفارش خود را واردنمایید.";return false;}</script></head><body><div class="sidebar3"> <div class="m"><a href="index.php">صفحه اصلی</a></div> <div class="m"><a href="kharej.php">نمای خارجی</a></div> <div class="m"><a href="dakhel.php">نمای داخلی</a></div> <div class="m"><a href="kaf.php">نمای کف</a></div> <div class="m"><a href="factory.php">درباره کارخانه</a></div> <div class="m"><a href="manager.php">درباره مسولان</a></div> <div class="m"><a href="kharid.php">راهنمای خرید</a></div> <div class="m"><a href="pardakht.php">راهنمای پرداخت</a></div> <div class="m"><a href="contact.php">ارتباط با ما</a></div> <div class="m"><a href="support.php">پشتیبانی</a></div> <div class="m"><a href="form.php">فرم سفارش</a></div> <div class="m"><a href="peygiri.php">پیگیری سفارش</a></div> </div> <div class="masir"> <?phpecho 'دسته بندی: ' . DisplayPath(20);?></div><!--masir--> <div id="formsefaresh" dir="rtl"> <div dir="rtl"> <p id="err"></p> <form name="formsefaresh" action="verify.php" onsubmit="return validateForm()" method="post"> <table border="0px" width="" cellpadding="0px" cellspacing="0px"> <tr><th><td> <strong class="namefield1">نام:</strong><span class='required'>*</span> <input type='text'class='formstyle1' name='cufrist_name' /></td></th> <th><td> <strong class="namefield2">نام خانوادگی: </strong><span class='required'>*</span> <input type='text' class='formstyle2' name='culast_name' /></td></th></tr> <tr><th><td><strong class="namefield1"> تلفن:</strong><span class='required'>*</span> <input type='text' class='formstyle1' name='phone' /></td></th> <th><td><strong class="namefield2"> موبایل: </strong><span class='required'>*</span> <input type='text'class='formstyle2' name='mobile' /></td></th></tr> <tr><th><td><p><strong class="namefield1">آدرس:</strong><span class='required'>*</span> <input type='text' id='address' name='address' /></p></td></th></tr> <tr><th><td><p><strong class="namefield1"> پست الکترونیک:</strong><span class='required'>*</span> <input type='text' id='email' name='email' /></p></td></th></tr> <tr><th><td><p><strong class="namefield1">˜کدمحصول: </strong><span class='required'>*</span> <input type='text'class='formstyle1' name='product_cod' /></p></td></th> <th><td><p><strong class="namefield2">نام محصول: </strong><span class='required'>*</span> <input type='text' class='formstyle2' name='product_name' /></p></td></th></tr> <tr><th><td><p><strong class="namefield1">ابعادمحصول: </strong><span class='required'>*</span> <input type='text' class='formstyle1' name='product_bod' /></p></td></th> <th><td><p><strong class="namefield2">قیمت واحد: </strong><span class='required'>*</span> <input type='text' class='formstyle2' name='gheymatevahed' /></p></td></th></tr> <tr> <th><td><p><strong class="namefield1">اعتبارقیمت:</strong><span class='required'>*</span> <input type='text' class='formstyle1' name='etebaregheymat' /></p></td></th> <th><td><p><strong class="namefield2">میزان سفارش: </strong><span class='required'>*</span> <input type='text' class='formstyle2' name='mizanesefaresh' /></p></td></th> </tr> <tr><th><td><p><strong class="namefield1">تعدادحمل:</strong><span class='required'>*</span> <input type='text' class='formstyle1' name='tedadehaml' /></p></td></th> <th><td><p><strong class="namefield2">نحوه پرداخت: </strong><span class='required'>*</span> <input type='text' class='formstyle2' name='payment' /></p></td></th></tr> <tr><th><td><p><strong class="namefield1">تاریخ سفارش:</strong><span class='required'>*</span> <input type='text' class='formstyle1' name='tarikhsefaresh' /></p></td></th> <th><td><p><strong class="namefield2">رنگ: </strong><span class='required'>*</span> <input type='text' class='formstyle2' name='color' /></p></td></th></tr> <tr> <th><td id="recaptcha"> <?php require_once('recaptchalib.php'); $publickey="6LdrCOMSAAAAANebLpU3AruJhYWmJgXweRhVij EC "; echo recaptcha_get_html($publickey); ?> </td></th> </tr> </br> <tr align="center" valign="middle"> <th><td> <input type="submit" id="submit" value="Submit"> </td></th> </tr> </table> </form> </div><!-- rtl --> </div><!-- contentpage rtl --> </body></html><?phpob_end_flush();?> and this code is verify.php(verify .php is action my from) <?phpob_start();require_once 'config.php';require_once 'header.php';require_once 'db.php';?><!doctype html><html dir="rtl"><head><meta charset="utf8"/><title><?php echo TITR;?></title><link rel="stylesheet" type="text/css" href="style.css" /></head><body><div class="sidebar3"> <div class="m"><a href="index.php">صفحه اصلی</a></div> <div class="m"><a href="ajori.php">طرح آجري</a></div> <div class="m"><a href="pazel.php">طرح پازل</a></div> <div class="m"><a href="hasir.php">طرح حصیری</a></div> <div class="m"><a href="gheychi.php">طرح قیچی</a></div> <div class="m"><a href="namonazam.php">طرح نامنظم</a></div> <div class="m"><a href="kharej.php">نمای خارجی</a></div> <div class="m"><a href="dakhel.php">نمای داخلی</a></div> <div class="m"><a href="kaf.php">نمای کف</a></div> <div class="m"><a href="factory.php">درباره کارخانه</a></div> <div class="m"><a href="manager.php">درباره مسولان</a></div> <div class="m"><a href="kharid.php">راهنمای خرید</a></div> <div class="m"><a href="pardakht.php">راهنمای پرداخت</a></div> <div class="m"><a href="contact.php">ارتباط با ما</a></div> <div class="m"><a href="support.php">پشتیبانی</a></div> <div class="m"><a href="form.php">فرم سفارش</a></div> <div class="m"><a href="peygiri.php">پیگیری سفارش</a></div> </div> <div id="contactform" dir="rtl"> <div dir="rtl"> <?php require_once('recaptchalib.php'); $privatekey="6LdrCOMSAAAAALq1PN6d_7ITWV2pSIqLhCw4vjJC"; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if(!$resp->is_valid){ die("تصویر امنیتی واردشده صحیح نمیباشد،لطفا کد راصحیح وارد نمایید."."(recaptcha said:".$resp->error.")"); } else{ $con=mysql_connect("localhost","root",""); mysql_select_db("keivandb",$con); $cufrist_name=$_POST['cufrist_name']; $culast_name=$_POST['culast_name']; $phone=$_POST['phone']; $mobile=$_POST['mobile']; $address=$_POST['address']; $email=$_POST['email']; $product_cod=$_POST['product_cod']; $product_name=$_POST['product_name']; $product_bod=$_POST['product_bod']; $gheymatevahed=$_POST['gheymatevahed']; $etebaregheymat=$_POST['etebaregheymat']; $mizanesefaresh=$_POST['mizanesefaresh']; $tedadehaml=$_POST['tedadehaml']; $payment=$_POST['payment']; $tarikhsefaresh=$_POST['tarikhsefaresh']; $color=$_POST['color']; $err = false; //cufrist_name if($cufrist_name=null || $cufrist_name=="" ) { echo "نام وارد شده کمتر از سه حرف میباشد،لطفا نام خود را صحیح واردنمایید."; $err = true; } //culast_name if($culast_name=null || $culast_name=="" ) { echo "نام خانوادگی شما کمتر از سه حرف می باشد یا وارد نشده ،لطفا نام خانوادگی خود را واردنمایید."; $err = true; } //phone if($phone=null || $phone=="" ) { echo "تلفن وارد شده کمترازده رقم می باشد،لطفا شماره تلفن را صحیح وارد نمایید."; $err = true; } //mobile if($mobile=null || $mobile=="" ){ echo "تلفن همراه واردشده کمترازده رقم می باشد،لطفا شماره همراه خود را بطور صحیح واردنمایید."; $err = true; } //address if($address=null || $address=="") { echo "شما آدرس خود را وارد ننموده اید،لطفا آدرس دقیق خود را بطورکامل وارد نمایید."; $err = true; } //email if($email=null || $email==""){ echo "شما ایمیل خود ا وارد ننموده اید،لطفا ایمیل خود را وارد نمایید."; $err = true; } //product_cod if($product_cod=null || $product_cod==""){ echo "شما کد محصول مورد نظر خود را وارد ننموده اید،لطفاآن را وارد نماید."; $err = true; } //product_name if($product_name=null || $product_name==""){ echo "شما نام محصول مورد نظر خود را وارد نکرده اید،لطفا آن راواردنمایید."; $err = true; } //product_bod if($product_bod=null || $product_bod==""){ echo "ابعاد محصول مورد نظرشما چیست؟آن را واردنکرده اید،لطفاآن را واردنمایید."; $err = true; } //gheymatevahed if($gheymatevahed=null || $gheymatevahed==""){ echo "قیمت واحد درج شده زیر محصول موردنظر را واردننموده اید،لطفاقیمت واحد راواردنمایید."; $err = true; } //etebaregheymat if( $etebaregheymat=null || $etebaregheymat=="") { echo "لطفا تاریخ اعتبار قیمت محصول مورد نظر خود را واردنمایید."; $err = true; } //mizanesefaresh if($mizanesefaresh=null || $mizanesefaresh==""){ echo "میزان سفارش محصول موردنظرشما چقدراست؟لطفا آن را به متر واردنمایید."; $err = true; } //tedadehaml if($tedadehaml=null || $tedadehaml==""){ echo "شما فیلد تعداد حمل را وارد ننموده اید،لطفا آن را وارد نمایید."; $err = true; } //payment if($payment=null || $payment==""){ echo "لطفا نحوه پرداخت را واردنماید،شما آن را وارد ننموده اید."; $err = true; } //tarikhsefaresh if($tarikhsefaresh=null || $tarikhsefaresh==""){ echo "لطفا تاریخ سفارش را وارد نمایید،شما این فیلد را پر ننموده اید."; $err = true; } //color if($color=null || $color==""){ echo "رنگ مورد نظر برای سفارش شما چیست؟لطفا ان راوارد نمایید."; $err = true; } if($err == false) { $sql="INSERT INTO orders(cufrist_name,culast_name,phone,mobile,address,email,product_cod,product_namee,product_bod,gheymatevahed,etebaregheymat, mizanesefaresh,tedadehaml,payment,tarikhsefaresh,color) VALUES ('".$cufrist_name."','".$culast_name."','".$phone. "','".$mobile."','".$address."', '".$email."','".$product_cod."', '".$product_name."','".$product_bod."','".$gheymatevahed."','".$etebaregheymat."','".$mizanesefaresh ."', ,'".$tedadehaml."','".$payment."','".$tarikhsefaresh."','".$color."')"; } } ?> </div><!-- rtl --> </div><!-- contentpage rtl --></body></html><?phpob_end_flush();?> please help me? why don`t save ma data in database?
  16. hello i make a customer orders form with php but When I fill out the order form and enter information into fields that would,and click submit button don`t save my information in database.why? i don`t know why don`t save mydata in database? how do i? please help me. very very important
  17. my question above and showing there error following:(that errors above say): how do i resolve this errors and problem?please help me. 1-( ! ) SCREAM: Error suppression ignored for ( ! ) Notice: Undefined index: cufrist_name in C:\wamp\www\Test3\form.php on line 140 2-) SCREAM: Error suppression ignored for ( ! ) Notice: Undefined index: culast_name in C:\wamp\www\Test3\form.php on line 141 3-( ! ) SCREAM: Error suppression ignored for ( ! ) Notice: Undefined index: phone in C:\wamp\www\Test3\form.php on line 142 4-( ! ) SCREAM: Error suppression ignored for ( ! ) Notice: Undefined index: mobile in C:\wamp\www\Test3\form.php on line 143 5-( ! ) SCREAM: Error suppression ignored for ( ! ) Notice: Undefined index: address in C:\wamp\www\Test3\form.php on line 144 6-( ! ) SCREAM: Error suppression ignored for ( ! ) Notice: Undefined index: email in C:\wamp\www\Test3\form.php on line 145 7-) Notice: Undefined index: product_cod in C:\wamp\www\Test3\form.php on line 146 8- Notice: Undefined index: product_name in C:\wamp\www\Test3\form.php on line 147 9- Notice: Undefined index: product_bod in C:\wamp\www\Test3\form.php on line 148 10-Notice: Undefined index: gheymatevahed in C:\wamp\www\Test3\form.php on line 149 11- Notice: Undefined index: etebaregheymat in C:\wamp\www\Test3\form.php on line 150 12-) Notice: Undefined index: mizanesefaresh in C:\wamp\www\Test3\form.php on line 151 13-) Notice: Undefined index: tedadehaml in C:\wamp\www\Test3\form.php on line 152 14-Notice: Undefined index: payment in C:\wamp\www\Test3\form.php on line 153 15-Notice: Undefined index: tarikhsefaresh in C:\wamp\www\Test3\form.php on line 154 16-Notice: Undefined index: color in C:\wamp\www\Test3\form.php on line 155 17-Notice: Undefined variable: etebaregheymat in C:\wamp\www\Test3\form.php on line 198 18- Notice: Undefined variable: recaptch in C:\wamp\www\Test3\form.php on line 222 please help me. very very important.thanks
  18. hello i write the customer order form with php and java script for validation and recaptcha, but my form showing many error. and don`t show recaptcha code? why? what`s meaning this error?this code is : my form code <?phpsession_start();ob_start();error_reporting(-1);require_once 'config.php';require_once 'header.php';require_once 'db.php';?><!doctype html><html dir="rtl"><head><meta charset="utf8"/><title><?php echo TITR;?></title><link rel="stylesheet" type="text/css" href="style.css" /><!--<link rel="stylesheet" type="text/css" href="style1.css"/>--><script type="text/javascript">function validateForm(){var product_cod=document.forms["formsefaresh"]["product_cod"].value;var_err=document.getElementById("err");if(product_cod=null || product_cod==""){_err.innerHTML +="کدمحصول واردنشده یا اشتباه وارد شده است.لطفاکدمحصول راصحیح واردفرمایید.<br/>";}var cufrist_name=document.forms["formsefaresh"]["cufirst_name"].value;var_err=document.getElementById("err");if(cufrist_name=null || cufrist_name=="" || cufrist_name <'3'){_err.innerHTML +="نام شما کمترازسه حرف میباشد لطفا نام خودراصحیح وکامل واردنمایید.<br/>";}var culast_name=document.forms["formsefaresh"]["culast_name"].value;var_err=document.getElementById("err");if(culast_name=null || culast_name=="" || culast_name <'3'){_err.innerHTML +="نام خانوادگی شماکمترازسه حرف می باشد لطفا نام خانوادگی خود را صحیح واردنمایید.<br/>";}var phone=document.forms["formsefaresh"]["phone"].value;var_err=document.getElementById("err");if(phone=null || phone=="" || phone <10){_err.innerHTML +="تلفن واردشده کمتراز ده رقم میباشد،لطفا تلفن خود راصحیح واردنمایید.<br/>";}var mobile=document.forms["formsefaresh"]["mobile"].value;var_err=document.getElementById("err");if(mobile=null || mobile=="" || mobile<10){_err.innerHTML +="شماره همراه واردشده کمتراز ده رقم میباشد،لطفا شماره همراه خود را صحیح وارد نمایید.<br/>";}var mobile=document.forms["formsefaresh"]["mobile"].value;var_err=document.getElementById("err");if(mobile=null || mobile==""){_err.innerHTML +="<br/>";}var address=document.forms["formsefaresh"]["address"].value;var_err=document.getElementById("err");if(address=null || address=="" ){_err.innerHTML +="آدرس خود را وارد نکرده اید.لطفا آدرس کامل خود را بطور صحیح واردنمایید.<br/>";}var address=document.forms["formsefaresh"]["email"].value;var_err=document.getElementById("err");if(email=null || email=="" ){_err.innerHTML +="آدرس ایمیل خود را واردنکرده اید یا معتبرنمیباشد،لطفا آدرس ایمیل معتبر واردنمایید.<br/>";}var product_name=document.forms["formsefaresh"]["product_name"].value;var_err=document.getElementById("err");if(product_name=null || product_name=="" ){_err.innerHTML +="نام محصول موردنظررا واردنکرده اید،لطفاآنراواردنمایید.<br/>";}var product_bod=document.forms["formsefaresh"]["product_bod"].value;var_err=document.getElementById("err");if(product_bod=null || product_bod=="" ){_err.innerHTML +="ابعاد موردنظر شما واردنشده است ،لطفا ابعادموردنیاز محصول موردنظرتان را واردنمایید.<br/>";}var gheymatevahed=document.forms["formsefaresh"]["gheymatevahed"].value;var_err=document.getElementById("err");if(gheymatevahed=null || gheymatevahed=="" ){_err.innerHTML +="قیمت واحد محصول موردنظر را واردنکرده اید،لطفا قیمت واحد را واردنمایید.<br/>";}var etebaregheymat=document.forms["formsefaresh"]["etebaregheymat"].value;var_err=document.getElementById("err");if(etebaregheymat=null || etebaregheymat=="" ){_err.innerHTML +="اعتبارقیمت محصول موردنظرخودراواردنکرده اید،لطفا آن را واردنمایید.<br/>";}var mizanesefaresh=document.forms["formsefaresh"]["mizanesefaresh"].value;var_err=document.getElementById("err");if(mizanesefaresh=null || mizanesefaresh=="" ){_err.innerHTML +="میزان سفارش خود را واردنکردهاید،لطفامیزان سفارش خود را واردنمایید.<br/>";}var tedadehaml=document.forms["formsefaresh"]["tedadehaml"].value;var_err=document.getElementById("err");if(tedadehaml=null || tedadehaml=="" ){_err.innerHTML +="تعداد حمل موردنظر خود را واردنکرده اید،لطفاآنرا مشخص و واردنمایید.<br/>";}var payment=document.forms["formsefaresh"]["payment"].value;var_err=document.getElementById("err");if(payment=null || payment=="" ) {_err.innerHTML +="نحوه پرداخت سفارش را واردنکرده اید،لطفا آنرا وارد نمایید.<br/>";}var tarikhsefaresh=document.forms["formsefaresh"]["tarikhsefaresh"].value;var_err=document.getElementById("err");if(tarikhsefaresh=null || tarikhsefaresh=="" ) {_err.innerHTML +="فیلد تاریخ سفارش خالی است،لطفاتاریخ سفارش خود را واردنمایید.<br/>";}var color=document.forms["formsefaresh"]["color"].value;var_err=document.getElementById("err");if(color=null || color=="" ) {_err.innerHTML +="رنگ محصول موردنظر خود را واردنکرده اید،لطفا رنگ موردنظر برای سفارش خود را واردنمایید.<br/>";}return false;}</script></head><body> فرم سفارش<div class="sidebar3"> <div class="m"><a href="index.php">صفحه اصلی</a></div> <div class="m"><a href="ajori.php">طرح آجري</a></div> <div class="m"><a href="pazel.php">طرح پازل</a></div> <div class="m"><a href="hasir.php">طرح حصیری</a></div> <div class="m"><a href="gheychi.php">طرح قیچی</a></div> <div class="m"><a href="namonazam.php">طرح نامنظم</a></div> <div class="m"><a href="kharej.php">نمای خارجی</a></div> <div class="m"><a href="dakhel.php">نمای داخلی</a></div> <div class="m"><a href="kaf.php">نمای کف</a></div> <div class="m"><a href="factory.php">درباره کارخانه</a></div> <div class="m"><a href="manager.php">درباره مسولان</a></div> <div class="m"><a href="kharid.php">راهنمای خرید</a></div> <div class="m"><a href="pardakht.php">راهنمای پرداخت</a></div> <div class="m"><a href="contact.php">ارتباط با ما</a></div> <div class="m"><a href="support.php">پشتیبانی</a></div> <div class="m"><a href="form.php">فرم سفارش</a></div> <div class="m"><a href="peygiri.php">پیگیری سفارش</a></div> </div> <div id="contactform" dir="rtl"> <div dir="rtl"> <?php $con=mysql_connect("localhost","root",""); mysql_select_db("keivandb",$con); $cufrist_name=$_POST['cufrist_name']; $culast_name=$_POST['culast_name']; $phone=$_POST['phone']; $mobile=$_POST['mobile']; $address=$_POST['address']; $email=$_POST['email']; $product_cod=$_POST['product_cod']; $product_name=$_POST['product_name']; $product_bod=$_POST['product_bod']; $gheymatevahed=$_POST['gheymatevahed']; $etebaregheymate=$_POST['etebaregheymat']; $mizanesefaresh=$_POST['mizanesefaresh']; $tedadehaml=$_POST['tedadehaml']; $payment=$_POST['payment']; $tarikhsefaresh=$_POST['tarikhsefaresh']; $color=$_POST['color']; //cufrist_name if($cufrist_name=null || $cufrist_name=="" ||$cufrist_name <3) { echo "نام وارد شده کمتر از سه حرف میباشد،لطفا نام خود را صحیح واردنمایید.<br/>"; } //culast_name if($culast_name=null || $culast_name=="" ||$cufrist_name <3) { echo "نام خانوادگی شما کمتر از سه حرف می باشد یا وارد نشده ،لطفا نام خانوادگی خود را واردنمایید.<br/>"; } //phone if($phone=null || $phone=="" || $phone<10) { echo "تلفن وارد شده کمترازده رقم می باشد،لطفا شماره تلفن را صحیح وارد نمایید.<br/>"; } //mobile if($mobile=null || $mobile=="" ||$mobile<10){ echo "تلفن همراه واردشده کمترازده رقم می باشد،لطفا شماره همراه خود را بطور صحیح واردنمایید.<br/>"; } //address if($address=null || $address=="") { echo "شما آدرس خود را وارد ننموده اید،لطفا آدرس دقیق خود را بطورکامل وارد نمایید.<br/>"; } //email if($email=null || $email==""){ echo "شما ایمیل خود ا وارد ننموده اید،لطفا ایمیل خود را وارد نمایید.<br/>"; } //product_cod if($product_cod=null || $product_cod==""){ echo "شما کد محصول مورد نظر خود را وارد ننموده اید،لطفاآن را وارد نماید.<br/>"; } //product_name if($product_name=null || $product_name==""){ echo "شما نام محصول مورد نظر خود را وارد نکرده اید،لطفا آن راواردنمایید.<br/>"; } //product_bod if($product_bod=null || $product_bod==""){ echo "ابعاد محصول مورد نظرشما چیست؟آن را واردنکرده اید،لطفاآن را واردنمایید.<br/>"; } //gheymatevahed if($gheymatevahed==null || $gheymatevahed==""){ echo "قیمت واحد درج شده زیر محصول موردنظر را واردننموده اید،لطفاقیمت واحد راواردنمایید.<br/>"; } //etebaregheymat if($etebaregheymat=null || $etebaregheymat=="") { echo "لطفا تاریخ اعتبار قیمت محصول مورد نظر خود را واردنمایید.<br/>"; } //mizanesefaresh if($mizanesefaresh=null || $mizanesefaresh==""){ echo "میزان سفارش محصول موردنظرشما چقدراست؟لطفا آن را به متر واردنمایید.<br/>"; } //tedadehaml if($tedadehaml=null || $tedadehaml==""){ echo "شما فیلد تعداد حمل را وارد ننموده اید،لطفا آن را وارد نمایید.<br/>"; } //payment if($payment=null || $payment==""){ echo "لطفا نحوه پرداخت را واردنماید،شما آن را وارد ننموده اید.<br/>"; } //tarikhsefaresh if($tarikhsefaresh=null || $tarikhsefaresh==""){ echo "لطفا تاریخ سفارش را وارد نمایید،شما این فیلد را پر ننموده اید.<br/>"; } //color if($color=null || $color==""){ echo "رنگ مورد نظر برای سفارش شما چیست؟لطفا ان راوارد نمایید.<br/>"; } // recaptcha code if($recaptch=="" || $recaptcha=null || $recaptcha !=$_SESSION['recaptcha']){ echo "کد وارد شده صحیح نمی باشد،لطفا کد صحیح را وارد نمایید.<br/>"; } else {// $sql="INSERT INTO orders(cufrist_name,culast_name,phone,mobile,address,email,product_cod,product_nmae,product_bod,gheymatevahed,etebaregheymat,// mizanesefaresh,payment,tarikhsefaresh,color) VALUES ('".$cufrist_name."','".$culast_nmae."','".$phone."','".$mobile."','".$address."', '".$email."','".$product_cod."',// '".$product_name."','".$product_bod."','".$gheymatevahed."','".etebaregheymate."','".$mizanesefaresh."',//,'".$tedadehaml."','".$payment."','".$tarikhsefaresh."','".$color."')"; } echo " <?php require_once('recaptchalib.php'); $publickey='6Lel4lSAAAAAluYh2isoRgQL9jLt3ylqlN6Vg8'; echo recaptcha_get_html($publickey); ?> <form id='formsefaresh' name='formsefaresh' action='verify.php' on submit='return validateForm()' method='post'> <p><strong>نام: </strong><span class='required'>*</span> <input id='cufrist_name' type='text' name='cufrist_name' value='".$cufrist_name."' /></p> <p><strong>نام خانوادگی: </strong><span class='required'>*</span> <input id='culast_name' type='text' name='culast_name' value='".$culast_name."' /></p> <p><strong> تلفن ثابت:</strong><span class='required'>*</span> <input id='phone' type='text' name='phone' value='".$phone."' /></p> <p><strong> تلفن همراه:</strong><span class='required'>*</span> <input id='mobile' type='text' name='mobile' value='".$mobile." '/></p> <p><strong>آدرس:</strong><span class='required'>*</span> <input id='address' type='text' name='address' value='".$address." '/></p> <p><strong> پست الکترونیک:</strong><span class='required'>*</span> <input id='email' type='text' name='email' value='".$email." '/></p> <p><strong>کدمحصول: </strong><span class='required'>*</span> <input id='product_cod' type='text' name='product_cod' value='".$product_cod."' /></p> <p><strong>نام محصول: </strong><span class='required'>*</span> <input id='product_name' type='text' name='product_name' value='".$product_name."' /></p> <p><strong>ابعادمحصول: </strong><span class='required'>*</span> <input id='product_bod' type='text' name='product_bod' value='".$product_bod."' /></p> <p><strong>قیمت واحد:</strong><span class='required'>*</span> <input id='gheymatevahed' type='text' name='gheymatevahed' value='".$gheymatevahed."' /></p> <p><strong>اعتبارقیمت:</strong><span class='required'>*</span> <input id='etebaregheymat' type='text' name='etebaregheymat' value='".$etebaregheymat."' /></p> <p><strong>میزان سفارش:</strong><span class='required'>*</span> <input id='mizanesefaresh' type='text' name='mizanesefaresh' value='".$mizanesefaresh."' /></p> <p><strong>تعدادحمل:</strong><span class='required'>*</span> <input id='tedadehaml' type='text' name='tedadehaml' value='".$tedadehaml." '/></p> <p><strong>نحوه پرداخت:</strong><span class='required'>*</span> <input id='payment' type='text' name='payment' value='".$payment."' /></p> <p><strong>تاریخ سفارش:</strong><span class='required'>*</span> <input id='tarikhsefaresh' type='text' name='tarikhsefaresh' value='".$tarikhsefaresh."' /></p> <p><strong>رنگ محصول:</strong><span class='required'>*</span> <input id='color' type='text' name='color' value='".$color."' /></p> <p><strong>تصویر امنیتی زیر را وارد کنید:</strong><span class='required'>*</span> <input id='recaptcha' type='text' name='recaptcha' value='' /> <button>ثبت سفارش:</button></p> </form>" ;?> </div><!-- rtl --> </div><!-- contentpage rtl --> </body></html><?phpob_end_flush();?> this code is verify.php: <?php require_once('recaptchalib.php'); $privatekey="6Lel4lAAAAAl28lolQKCZBh8jqCG8NKcUBEMgH"; $resp=recaptcha_check_answer($privatekey, $_SERVER["REMOTE_ADDER"], $_POST["recaptcha_challenge_field"], $_post["recaptcha_response_field"]); if(!$resp->is_valid){ //درصورتیکه مقدار وارد شده صحیح نباشداین قسمت اجرامی شود. die("تصویر امنیتی واردشده صحیح نمیباشد،لطفا کد راصحیح وارد نمایید."."(recaptcha said:".$resp->error.")"); } else{ //درصورتی که مقدار واردشده صحیح باشد این قسمت اجرا می شود. echo "کدی که شما وارد کرده اید معتبر می باشد."; } ?> please help me.
  19. Please do not tell me what to search for? I do not know what to search for something. And what I search.please help me.
  20. hello ,i make a orderform for my website with out captcha and validation code.I would like to add captcha and validation code to the customer product order form.but i don`t know? how do i?this code is my form`s code : <form id="sefareshform" action="result1.php" method="post"><table border="0px" width="450px"><tr align="right" valign="middle"><th width="100px"><label for="cufrist_name"> نام:</label><span class="required">*</span></th><td><input class="transparent" id="cufrist_name" maxlenght="50" name="cufrist_name" style="width:120px" type="text"/></td><th width="120px"><label for="culast_name">نام خانوادگی</label><span class="required">*</span></th><td><input class="transparent" id="culast_name" maxlenght="50" name="culast_name" style="width:120Px" type="text"/></td></tr><tr align="right" valign="middle"><th width="100px"><label for="phone"> تلفن ثابت</label><span class="required">*</span></th><td><input class="transparent" id="phone" maxlenght="20" name="phone" style="width:120px;" type="text"/></td><th width="100px"><label for="mobile"> موبایل</label><span class="required">*</span></th><td><input class="transparent" id="mobile" maxlenght="20" name="mobile" style="width:120px;" type="text"/></td></tr><tr align="right" valign="middle"><th width="100px"><label for="address"> آدرس</label><span class="required">*</span></th><td><input class="transparent" id="address" maxlenght="150" name="address" style="width:300px" type="text"/></td></tr><tr align="right" valign="middle"><th width="100px"><label for="email"> ایمیل</label><span class="required">*</span></th><td><input class="transparent" id="email" maxlenght="60" name="email" style="width:200px" type="text"/></td></tr><tr align="right" valign="middle"><th width="100px"><label for="product_name">نام محصول</label><span class="required">*</span></th><td><input class="transparent" id="product_name" maxlenght="25" name="product_name" style="width:120px" type="text"/></td><th width="100px"><label for="product_cod">کد محصول</label><span class="required">*</span></th><td><input class="transparent" id="product_cod" maxlenght="20" name="product_cod" style="width:120px" type="text"/></td></tr><tr align="right" valign="middle"><th width="100px"><label for="product_bod">ابعاد محصول</label><span class="required">*</span></th><td><input class="transparent" id="product_bod" maxlenght="20" name="product_bod" style="width:120px" type="text"/></td><th width="100px"><label for="tedadehaml">تعداد حمل</label><span class="required">*</span></th><td><input class="transparent" id="tedadehaml" maxlenght="10" name="tedadehaml" style="width:120px" type="text"/></td></tr><tr align="right" valign="middle"><th><label for="gheymatevahed">قیمت واحد</label><span class="required">*</span></th><td><input class="transparent" id="gheymatevahed" maxlenght="20" name="gheymatevahed" style="width:120px" type="text"></td><th><label for="etebargheymat">اعتبار قیمت</label><span class="required">*</span></th><td><input class="transparent" id="etebargheymat" maxlenght="20" name="etebargheymat" style="width:120px" type="text"></td></tr><tr align="right" valign="middle"><th width="100px"><label for="tarikh">تاریخ سفارش</label><span class="required">*</span></th><td><input class="transparent" id="tarikhsefaresh" maxlenght="10" name="tarikhsefaresh" style="width:120px" type="text"/></td><th width="100px"><label for="payment">نحوه پرداخت</label><span class="required">*</span></th><td><input class="transparent" id="payment" maxlenght="20" name="payment" style="width:120px" type="text"/></td></tr><tr align="right" valign="middle"><th><label for="mizanesefaresh">میزان سفارش</label><span class="required">*</span></th><td><input class="transparent" id="mizanesefaresh" maxlenght="20" name="mizanesefaresh" style="width:120px" type="text"></td><th><label for="color">رنگ محصول</label><span class="required">*</span></th><td><input class="transparent" id="color" maxlenght="20" name="color" style="width:120px" type="text"></td></tr><tr align="left" valign="middle"><td colspan="2"><input id="submit" style="width:100px;" type="submit" value="ثبت سفارش"/></td></tr></form> > how add captcha and validation code with php to customer order form?how do i?please help me? very important.thanks.
  21. please help me ,Why does not anyone answer my question.؟
  22. hello,i change above code again , this code exe in myweb page but don`t show The w3schools Fourm -->Server Scripting -->PHP and ArrangedBut as messy as follows (in picture box drawn around it and my language is Persian.)servr scripting->php->w3schools(in persian:طرح آجری-->دسته بندی->طرح) why?this is code : <?php require_once 'config.php'; ?><?phpfunction DisplayPath($cat_id) { error_reporting(E_ALL); mysql_connect('localhost', 'root', '') or die('Connection error'); mysql_select_db('keivandb') or die('Database error'); mysql_query('SET NAMES\'utf8\''); mysql_set_charset("utf8"); $cat_id = mysql_real_escape_string($cat_id); $category = mysql_query("SELECT * FROM categories WHERE id={$cat_id} LIMIT 1"); $nav = ''; $name="";$id="";$parent=""; while($x = mysql_fetch_array($category)) { $name= $x['name']; $id=$x['id']; $parent=$x['parent']; }$category = mysql_query("SELECT * FROM categories WHERE id={$cat_id} LIMIT 1");while($x = mysql_fetch_array($category)) { $name= $x['name']; } $cat="categories"; if($category && mysql_num_rows($category) > 0) { $category = mysql_fetch_assoc($category); do { //$nav = '<a href=\" ' . ADDR . '/categories/' . $category['id'] . '/' . $category['name'] . ' \">' . $category['name'] . '</a> -> ' . $nav; $nav = "<a href=\"http://localhost/Test2/{$cat}/{$id}/{$name}\" >{$name}<a>"; echo $nav; $parent = mysql_real_escape_string($category['parent']); $category = mysql_query("SELECT * FROM categories WHERE id=parent LIMIT 1"); if($category && mysql_num_rows($category) > 0) { $category = mysql_fetch_assoc($category); } else { echo mysql_error(); } } while (is_array($category)); $nav = mb_substr($nav, 0, mb_strlen($nav, 'utf-8') - 7, 'utf-8'); } else { echo mysql_error(); } echo '<b>دسته بندی:</b>' . $nav; //echo '<b>دسته بندی:</b>' . $nav . PHP_EOL();}?> how i do Properly and regularly runs? please help me.
  23. hello i don`t know javascript and jquery but I used to do a slide show with the gallery.Do the following:All photos should be in a small form and When you click on the photo, it's a great show, and go to the page there is a picture of the description I do not know how and where do I download this gallery. Or what do I search for the gallery that I find on the internet.please help me or if you can, give me the source and code for this gallery. please give me the link slideshow gallery . please help me thanks
×
×
  • Create New...