Jump to content

dream25

Members
  • Posts

    77
  • Joined

  • Last visited

    Never

Everything posted by dream25

  1. hi Goldeneye, Thanks for your reply. Is it possible to do in css. Thanks in advance.
  2. Hi, Im new to HTML, i just plan to create one page with a image by using the select option, there are 4 choice, right, left, top, bottom, if i click the right option, the image will be in the right side of the page, like the remaining options, how can i code for this, plz help me. the code below i tried here.. <html> <head> <title>picture</title> <form method="post" action="circle.html" > <select> <option>Please select your option</option> <option value="Left">Left</option> <option value="Right">Right</option> <option value="Top">Top</option> <option value="Bottom">Bottom</option> </select> </form> <img src="file:///C|/Documents and Settings/SES.SUMITAA-4088532/My Documents/My Pictures/001.jpg" </head> </html> Thanks in Advance
  3. Hi folks, Will u plz gimme a idea to write a code for Search engine in php with Mssql..i wanna to search the words from my website itself... r gimme a link to browse... Thanks in Advance... Shree Uday
  4. Thank u.. Surely i will try to implement the code... Shree Uday
  5. Is it possible the pass thePHP value.. when we pass the text from child window to parent window... thanks in Advance.. Shree Uday
  6. here i attached my code, plz check it.. Index.php
  7. Hi folk... I have a parent window with one text field and open button, if i click the open button, the child window has open,in that child window,one text field and one submit button, lets type the text in the field and click submit,then the text can be display in the parent text field, the value can be pass by php code, is it possible to do this script, will u plz help me out, if u have any code, plz forward it.. Thanks in Advance, Shree Uday
  8. Hi folk... Im newbie to PHP... I wanna to do a prject in PHP, I have little bit of idea in PHP, but i dont know how to start the project, if u have any simple project plz post here, so i can analyse how its working, will u plz,,, thanks in Advance.. Thanks & Regards, Shree Uday
  9. hi.. did u get any idea about my post
  10. thanks.. really im getting aware of this.. i dont know whats happening in that...
  11. now i send a mail to my id by ur id..if u recieve any mail..plz inform to me.. and also plz tell what content u recive
  12. but i didnt recieve any mail from u..
  13. Thanks.. its working.. better i give the url..u check whether is it right or not.. www.venkidesigns.com/udaya/ajax_contact.php
  14. Yes.. i checked the processform function with echo statement.. its working.. onething.. i recieved a mail from the user..in that.. to,subject,message only displayed, but the from column has shown nothing..
  15. thanks... now u check the code.. plz let me out
  16. Hi..All.. I have a code for contact us page in php with ajax, i have a problem when i run the code, actually the process is... sending a confirmation mail to who has contact me, i recieved a mail who has send to me.. but the confirmation mail has not send to him.. so whats the problem in it.. below i attached the code..Thanks in advance.. <? if(!isset($rnd) || !isset($name) || !isset($email) || !isset($subject) || !isset($body)) { showform(); } else { processform(); } function processform(){ echo "Checking"; global $name, $email, $subject, $body; $email_to1 = "shree_uday@yahoo.com"; // enter your email here $email_from1 = $mail; $email_to2 = $mail; $email_from2 = $email_to1; $email_subject = "Contact Form: ".stripslashes($subject); $email_message = "Please find below a message submitted by '".stripslashes($name); $email_message .="' on ".date("d/m/Y")." at ".date("H:i")."nn"; $email_message .="--------- START OF SUBMITTED MESSAGE ---------nn"; $email_message .= stripslashes($body); $email_message .="nn--------- END OF SUBMITTED MESSAGE ---------nn"; $confirmation_subject = "Thank you for your message"; $confirmation = "This is to confirm we have received your message...."; // SEND EMAIL TO email_to2 - confirmation $headers = 'From: '.$email_from2."rn" . 'Reply-To: '.$email_from2."rn" . 'X-Mailer: PHP/' . phpversion(); mail($email_to2, $email_subject, $confirmation, $headers); // SEND EMAIL TO email_to1 - message to you!! $headers = 'From: '.$email_from1."rn" . 'Reply-To: '.$email_from1."rn" . 'X-Mailer: PHP/' . phpversion(); mail($email_to1, $email_subject, $email_message, $headers); mail($email, $subject, $message, "From: $email"); echo "Thank You."; die(); } // end processform() function showform() { ?> <STYLE type="text/css"> div.row { clear:both; } div.row span.label { float: left; width: 60px; text-align: right; } div.row span.formw { float: right; width: 220px; text-align: left; } div.row span.left { float: left; text-align: left; font-weight: bold; color: #fff; width: 49%; } div.row span.right { float: right; text-align: right; font-weight: bold; color: #fff; width: 49%; } div.row span.submit{ width:280px; text-align:center; } #form{ width: 300px; background-color: #f6f6f6; border: 1px dotted #666; padding: 2px; margin: 0px auto; } #confirmation{ width: 300px; height:220px; background-color: #f6f6f6; border: 1px dotted #666; padding: 2px; margin: 0px auto; text-align: center; font-weight: bold; } </STYLE> <script type="text/javascript"> <!-- var http = createRequestObject(); var areal = Math.random() + ""; var real = areal.substring(2,6); function createRequestObject() { var xmlhttp; try { xmlhttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { try { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");} catch(f) { xmlhttp=null; } } if(!xmlhttp&&typeof XMLHttpRequest!="undefined") { xmlhttp=new XMLHttpRequest(); } return xmlhttp; } function sendRequest() { var rnd = Math.random(); var name = escape(document.getElementById("name").value); var email = escape(document.getElementById("email").value); var subject = escape(document.getElementById("subject").value); var body = escape(document.getElementById("body").value); try{ http.open('POST', 'ajax_contact.php'); http.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); http.onreadystatechange = handleResponse; http.send('name='+name+'&email='+email+'&subject='+subject+'&body='+body+'&rnd='+rnd); } catch(e){} finally{} } function check_values() { var valid = document.getElementById("valid").value; if(real !== valid) { alert("Ant-Bot check failed.....nPlease enter the 4 digits as they appear."); return false; } var name = document.getElementById("name").value; var email = document.getElementById("email").value; var subject = document.getElementById("subject").value; var body = document.getElementById("body").value; if(trim(name) == "" || trim(email) == "" || trim(subject) == "" || trim(body) == "") { alert("Please complete all fields"); } else { if(isEmail(email)) { document.getElementById("submit").disabled=true; document.getElementById("submit").value='Please Wait..'; sendRequest(); } else { alert("Email appears to be invalid.nPlease check."); document.getElementById("email").focus(); document.getElementById("email").select(); } } } function handleResponse() { try{ if((http.readyState == 4)&&(http.status == 200)){ var response = http.responseText; document.getElementById("confirmation").innerHTML = response; document.getElementById("confirmation").style.display =""; document.getElementById("form").style.display = "none"; } } catch(e){} finally{} } function isUndefined(a) { return typeof a == 'undefined'; } function trim(a) { return a.replace(/^s*(S*(s+S+)*)s*$/, "$1"); } function isEmail(a) { return (a.indexOf(".") > 0) && (a.indexOf("@") > 0); } function botCheckInfo() { alert("To prevent automatic programs (bots)nfrom submitting spam through this form,nwe have added a simple validationncheck to the form. You must enter nthese 4 digits in the box provided innorder to submit the form."); } // --> </script> <? } // end showform() ?> <div id="form"> <form> <div class="row"><span class="label">Name:</span> <span class="formw"><input type="text" id="name" size="30" /></span></div> <div class="row"><span class="label">Email:</span> <span class="formw"><input type="text" id="email" size="30" /></span></div> <div class="row"><span class="label">Subject:</span> <span class="formw"><input type="text" id="subject" size="30" /></span></div> <div class="row"><span class="label">Message:</span> <span class="formw"><textarea cols="23" rows="6" id="body"></textarea></span></div> <div class="row" align="center"><a href="javascript:botCheckInfo()">Anti-bot check</a>. Enter Digits '<b><script language="javascript">document.write(real)</script></b>' below:</div> <div class="row" align="center"><input type="text" id="valid" size="15" /></div> <div class="row" align="center"> </div> <div class="row" align="center"> <input type="button" value="Submit" id="submit" onClick="return check_values();"></div> </form> </div> <div id="confirmation" style="display:none"></span>
  17. just give like this.... sha1(md5($s).strrev(sha1($s))) strrev,strlen, md5,sha1.. these are the passwords protectors..
  18. Better u try this one... if u go thro this code.. then u find what prob in ur code.. got it <?php require("phpmailer/class.phpmailer.php"); if(isset($_POST['submit'])) { echo "Your Name Is <br>" . $_POST['txtname'] ; $link = mysql_connect("localhost","root",""); if(!$link) echo "Database Connection Failed" . mysql_error(); $db = mysql_select_db("test") ; $name = $_POST['txtname']; $email = $_POST['txtemail']; $sql = "insert into contact_us values('','".$_POST['txtname']."','".$_POST['txtemail']."')" ; $res = mysql_query($sql); if($res) { $mail = new PHPMailer(); $mail->IsSMTP(); // telling the class to use SMTP $mail->Host = "localhost"; // SMTP server $mail->From = "uday@ultiviz.com"; $mail->AddAddress($email); $mail->Subject = "first mailing"; $mail->Body = "hi ! \n\n this is First mailing I made myself with PHPMailer !"; $mail->WordWrap = 50; if(!$mail->Send()) { echo "Message was not sent"; echo "Mailer Error: " . $mail->ErrorInfo; } else { echo "Message has been sent"; } } } ?> <html> <head> <title>Enter Data</title> </head> <body> <form name="theform" action="test.php" method="post" action="sendmail.php"> <table> <tr> <td>Name :</td> <td><input type="text" name="txtname" size="50"></td> </tr> <tr> <td>Email :</td> <td> <input type="text" name="txtemail" size="50"> </td> </tr> <tr> <td></td> <td> <input type="submit" name="submit" value="Submit"> <input type="reset" value="Reset"> </td> </tr> </table> </form> </body> </html>
  19. Thanks.. will u please explain the code what u gave.. and where will i use this function.. <?php function myownEncrypter($s) { $s = strrev($s).md5(strlen($s)); $s = sha1($s); return $s; } ?>
  20. Thanks .. but how will i set..please guide me
  21. Thanks.. here my doubt is how we know that MD5 password is working...
  22. Better u try this link.. http://www.finalwebsites.com/tutorials/dynamic-navigation-list.php
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.