Jump to content

ramki067

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Everything posted by ramki067

  1. How do i install it? I've PHP.info displaying the below variables and there values: sendmail_from no value no value sendmail_path no value no value serialize_precision 100 100 short_open_tag On On SMTP localhost localhost smtp_port 25 25
  2. Hi, I'm getting the below error while sending mail. Error: Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for cys@kdkd.com in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\mail.php on line 39 Code: if (isset($_POST["submit"])) { $to = strip_tags($_POST["to"]); $sub = strip_tags($_POST["sub"]); $feedback = strip_tags($_POST["feedback"]); $from = strip_tags($_POST["from"]); $to= "xyz@gmail.com"; $sendto = $to; $subject = $sub; $message = $feedback; $headers ="MIME-Version:1.0\r\n"; $headers .="content-type:text/html; Charset=iso-8859-1\r\n"; $headers .="From: <" . "$from" . ">\r\n"; $headers .="X-Sender: <" . "$sendto" . ">\r\n"; $headers .="Return-Path: <" . "$sendto" . ">\r\n"; $headers .="Error-To: <" . "$sendto" . ">\r\n"; $sendto = trim($sendto); $themail= mail($sendto, $subject, $message, $headers) ; } Kindly help. Thanks, Ramki
  3. Hi all, I've a text box from which i need to transfer the values in text box to another page when i click a button. I've the following code but doesn't work. Please help. <input type=text name=search size=18 align=right> <input type="button" target=menu value="Go" onclick="fifthframe('search')"> and the javascript function is : function fifthframe(search) { parent.main.location.href="search_home.php?search="+search } I don't know much about javascript. the text box value is to be transfered to a php page. Please help. Regards, Ramki.
  4. Hi all, I've a text box from which i need to transfer the values in text box to another page when i click a button. I've the following code but doesn't work. Please help. <input type=text name=search size=18 align=right> <input type="button" target=menu value="Go" onclick="fifthframe('search')"> and the javascript function is : function fifthframe(search) { parent.main.location.href="search_home.php?search="+search } I don't know much about javascript. Or can i do anything in php? Regards, Ramki.
  5. no,no purefun, I didn't mention i didn't try it. I'm attaching my code below. I've been trying and now quite successful. But need some help on writing the contents on to a file.The file name i've mentioned is Selected_streams.txt, i need to write the searched contents to a file.Can u help me on this matter? <?php error_reporting(0); ini_set('display_errors', 1); ?> <HTML> <HEAD> <link href="style.css" type="text/css" rel="stylesheet" /> <TITLE>Streamware</TITLE> <script language="JavaScript"> var finalquery="" var conditionflag=false function goback() { location.href="automation.html" } </script> </HEAD> <BODY background=images/ltgray_lines1.gif text=000000> <center> <?php $streamname[0]=$_REQUEST['streamname1']; //echo "streamname1 is $streamname1";?> <br> <? $streamname[1]=$_REQUEST['streamname2']; //echo "streamname2 is $streamname2";?> <br> <? $streamname[2]=$_REQUEST['streamname3']; //echo "streamname3 is $streamname3";?> <br> <? $streamname[3]=$_REQUEST['streamname4']; //echo "streamname4 is $streamname4";?> <br> <? //---------The below code reads from the file and display the selected content--------------------// $i=0; $YourFile = "playback_automation_datafile_WMA_44kHz_full_2.txt"; $handle = fopen($YourFile, 'r'); while(!feof($handle)) { $Data = fgets($handle, 1024); //if(strpbrk($Data, '$streamname[i]')) if(strncmp($Data, $streamname[$i], strlen($streamname[$i])) != 0) { print $Data; [b]$File = "Selected_streams.txt"; $Handle1 = fopen($File, 'w'); echo "$Handle1"; fwrite($Handle1, $Data);[/b] } print "<p>"; $i++; } fclose($handle); fclose($Handle1); ?> <br><br> <form name="createquery" enctype="multipart/form-data" method="post" action="run.php"> <div id="container"> <div id="banner"> <div id="text"> </div> </div> <table border=0 cellpadding=4 cellspacing=1> <tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr> </td> <tr> <td valign=top align=left> </td> <td valign=top> <INPUT type="reset" value="Go Back" onclick="javascript:history.go(-1)"> </td> </tr> </TABLE> </FORM> </BODY> </HTML>
  6. HI all, I've to develop a html page where when i click one or two checkboxes and click submit, it has to take the values from the checkboxes and search a file for these values and take the whole line where the value is obtained, and store that line in another file. Can anybody help me in this as i'm a newbie to HTML. Thanks and Regards, Ramki
×
×
  • 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.