Jump to content

sonita

Members
  • Posts

    52
  • Joined

  • Last visited

About sonita

  • Birthday 05/22/1987

Previous Fields

  • Languages
    persian

Profile Information

  • Gender
    Male
  • Location
    Iran- fars
  • Interests
    webdesign & web developer

Contact Methods

  • Yahoo
    jafarisonita@yahoo.com

sonita's Achievements

Newbie

Newbie (1/7)

0

Reputation

  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?
×
×
  • Create New...