Jump to content

explore

Members
  • Posts

    18
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

explore's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. that's OK but i found one and i need some one to help me put it in an existing script its a capatcha is there a place on the forum i can hire some one to fix this i need it as soon as possible
  2. Hi i eed help to embed a code so the emailer has to fill out before sending it to me to protect from spam and so on My form mail works with php and html can anyone help me with what i should do to protect myself and others.\thank you
  3. Hi Ok well I'll try again i'm looking for some help trying to get my form mail up and running does anyone have time to help me or guide me in the right direction please help here's a link for my form mail http://www.quebec-ufo-research.com/report%20form.html Thank you.
  4. Hi ok [code]<?php # You can use this script to submit your forms or to receive orders by email. $MailToAddress = "julie@mypugpuppies.com"; // your email address $redirectURL = "http://www.mypugpuppies.com/thankyou.htm"; // the URL of the thank you page. $MailSubject = "[Message from the contact form]"; // the subject of the email $MailSent = "<center><img border=0 src=emailsent.gif width=450 height=350></center>"; //confirm image $sendHTML = FALSE; //set to "false" to receive Plain TEXT e-mail $serverCheck = TRUE; // if, for some reason you can't send e-mails, set this to "false" # copyright 2006 Web4Future.com =================== READ THIS =================================================== # If you are asking for a name and an email address in your form, you can name the input fields "name" and "email". # If you do this, the message will apear to come from that email address and you can simply click the reply button to answer it. # To block an IP, simply add it to the blockip.txt text file. # CHMOD 777 the blockip.txt file (run "CHMOD 777 blockip.txt", without the double quotes) # This is needed because the script tries to block the IP that tried to hack it # If you have a multiple selection box or multiple checkboxes, you MUST name the multiple list box or checkbox as "name[]" instead of just "name" # you must also add "multiple" at the end of the tag like this: <select name="myselectname[]" multiple> # you have to do the same with checkboxes /***************************************************************** *****************************************************************/ # DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING =================================================== $w4fver =  "2.2"; $ip = ($_SERVER['HTTP_X_FORWARDED_FOR'] == "" ? $_SERVER['REMOTE_ADDR'] : $_SERVER['HTTP_X_FORWARDED_FOR']); //function blockIP function blockip($ip) { $handle = @fopen("blockip.txt", 'a'); @fwrite($handle, $ip."\n"); @fclose($handle); } $w4fx = stristr(file_get_contents('blockip.txt'),getenv('REMOTE_ADDR')); if ($serverCheck) { if (preg_match ("/".str_replace("www.", "", $_SERVER["SERVER_NAME"])."/i", $_SERVER["HTTP_REFERER"])) { $w4fy = TRUE; } else { $w4fy = FALSE; } } else { $w4fy = TRUE; } if (($w4fy === TRUE) && ($w4fx === FALSE)) { $w4fMessage = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\"><html>\n<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"></head><body><font face=3Dverdana size=3D2>"; if (count($_GET) >0) { reset($_GET); while(list($key, $val) = each($_GET)) { $GLOBALS[$key] = $val; if (is_array($val)) { $w4fMessage .= "<b>$key:</b> "; foreach ($val as $vala) { $vala =stripslashes($vala); $vala = htmlspecialchars($vala); if (trim($vala)) { if (stristr($vala,"Content-Type:") || stristr($vala,"MIME-Version") || stristr($vala,"Content-Transfer-Encoding") || stristr($vala,"bcc:")) { blockip($ip); die("ILLEGAL EXECUTION DETECTED!"); } } $w4fMessage .= "$vala, "; } $w4fMessage .= "<br>\n"; } else { $val = stripslashes($val); if (trim($val)) { if (stristr($val,"Content-Type:") || stristr($val,"MIME-Version") || stristr($val,"Content-Transfer-Encoding") || stristr($val,"bcc:")) { blockip($ip); die("ILLEGAL EXECUTION DETECTED!"); } } if (($key == "Submit") || ($key == "submit")) { } else { if ($val == "") { $w4fMessage .= "$key: - <br>\n"; } else { $w4fMessage .= "<b>$key:</b> $val<br>\n"; } } } } // end while }//end if else { reset($_POST); while(list($key, $val) = each($_POST)) { $GLOBALS[$key] = $val; if (is_array($val)) { $w4fMessage .= "<b>$key:</b> "; foreach ($val as $vala) { $vala =stripslashes($vala); $vala = htmlspecialchars($vala); if (trim($vala)) { if (stristr($vala,"Content-Type:") || stristr($vala,"MIME-Version") || stristr($vala,"Content-Transfer-Encoding") || stristr($vala,"bcc:")) {blockip($ip); die("ILLEGAL EXECUTION DETECTED!"); } } $w4fMessage .= "$vala, "; } $w4fMessage .= "<br>\n"; } else { $val = stripslashes($val); if (trim($val)) { if (stristr($val,"Content-Type:") || stristr($val,"MIME-Version") || stristr($val,"Content-Transfer-Encoding") || stristr($val,"bcc:")) {blockip($ip); die("ILLEGAL EXECUTION DETECTED!"); } } if (($key == "Submit") || ($key == "submit")) { } else { if ($val == "") { $w4fMessage .= "$key: - <br>\n"; } else { $w4fMessage .= "<b>$key:</b> $val<br>\n"; } } } } // end while }//end else $w4fMessage .= "<font size=3D1><br><br>\n Sender IP: ".$ip."</font></font></body></html>";     $w4f_what = array("/To:/i", "/Cc:/i", "/Bcc:/i","/Content-Type:/i","/\n/"); $name = preg_replace($w4f_what, "", $name); $email = preg_replace($w4f_what, "", $email); if (!$email) {$email = $MailToAddress;} $mailHeader = "From: $name <$email>\r\n"; $mailHeader .= "Reply-To: $name <$email>\r\n"; $mailHeader .= "Message-ID: <". md5(rand()."".time()) ."@". ereg_replace("www.","",$_SERVER["SERVER_NAME"]) .">\r\n"; $mailHeader .= "MIME-Version: 1.0\r\n"; if ($sendHTML) { $mailHeader .= "Content-Type: multipart/alternative;"; $mailHeader .= " boundary=\"----=_NextPart_000_000E_01C5256B.0AEFE730\"\r\n"; } $mailHeader .= "X-Priority: 3\r\n"; $mailHeader .= "X-Mailer: PHP/" . phpversion()."\r\n"; $mailHeader .= "X-MimeOLE: Produced By Web4Future Easiest Form2Mail $w4fver\r\n"; if ($sendHTML) { $mailMessage = "This is a multi-part message in MIME format.\r\n\r\n"; $mailMessage .= "------=_NextPart_000_000E_01C5256B.0AEFE730\r\n"; $mailMessage .= "Content-Type: text/plain;  charset=\"ISO-8859-1\"\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\n"; $mailMessage .= trim(strip_tags($w4fMessage))."\r\n\r\n"; $mailMessage .= "------=_NextPart_000_000E_01C5256B.0AEFE730\r\n"; $mailMessage .= "Content-Type: text/html;  charset=\"ISO-8859-1\"\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\n"; $mailMessage .= "$w4fMessage\r\n\r\n"; $mailMessage .= "------=_NextPart_000_000E_01C5256B.0AEFE730--\r\n"; } if ($sendHTML === FALSE) { $mailHeader .= "Content-Type: text/plain;  charset=\"ISO-8859-1\"\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\n"; $mailMessage .= trim(strip_tags($w4fMessage))."\r\n\r\n"; } if (!mail($MailToAddress, $MailSubject, $mailMessage,$mailHeader)) { echo "Error sending e-mail!";} else { header("Location: ".$redirectURL); } else { echo "<center><font face=verdana size=3 color=red><b>ILLEGAL EXECUTION DETECTED!</b></font></center>";} // check whether file exists first if(file_exists("blockip.txt")) {     // if it exists get the contents of the file     $file_contents = file_get_contents("blockip.txt"); } ?>[/code]
  5. Hi I have the block text file and the permission is set . but i still get this error (Parse error: syntax error, unexpected T_ELSE in /home/julie1/public_html/form2mail.php on line 138)
  6. hi you can download the script [a href=\"http://www.mypugpuppies.com/form2mail.zip\" target=\"_blank\"]http://www.mypugpuppies.com/form2mail.zip[/a]
  7. Hi Thanks for helping out I did what you said but now geting error Parse error: syntax error, unexpected T_ELSE in /home/julie1/public_html/form2mail.php on line 138 is there a way to put the script up i tried earlier but it wouldn't let me says i dodn't have permission to view this page thing??. The email works I can recieve the emails the image comes up saying message sent but at the same time the errors show up also.
  8. Hi I have another error message from a php script this is what it says bellow. and here is what I have on line 50. } And on line 136 this is what I have there. [code]    if (!mail($MailToAddress, $MailSubject, $mailMessage,$mailHeader)) { echo "Error sending e-mail!";}[/code] i'm new to this so I have no idea what to do Warning: file_get_contents(blockip.txt) [function.file-get-contents]: failed to open stream: No such file or directory in /home/julie1/public_html/form2mail.php on line 50 Warning: Cannot modify header information - headers already sent by (output started at /home/julie1/public_html/form2mail.php:50) in /home/julie1/public_html/form2mail.php on line 136
  9. Hi ok is this ok and can i keep the field with the names in like this here [code]// check that $_POST['s1'] isset and that $_POST['s1'] is not empty if (isset($_POST['s1']) && !empty($_POST['s1'])){ //name of field 1      $MailBody = 'Name : $' . _POST['s1'] . "\n"; } if ($s2 == ""){ } else {      $MailBody .= "Company : $_POST['company']; } if ($s3 == ""){ } else {      $MailBody .= "E-mail : $_POST['email']; } if ($s4 == ""){ } else {      $MailBody .= "Subject : $_POST['subject']; } [/code]
  10. Hi thanks for taking time to help this is my error now when adding the code this way Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/julie1/public_html/formmail/formmail.php on line 22 [code]($s1 == ""){ //name of field 1 } else {      $MailBody = "Name :$_POST['name'];   } if ($s2 == ""){ } else {      $MailBody .= "Company : $_POST['company']; } if ($s3 == ""){ } else {      $MailBody .= "E-mail : $_POST['email'];[/code]
  11. Hi ok I did some changes in the above code can you look at it and tell me if this is going to work
  12. Hi whenyou ask for the code do you want the php script you can also go to the site www.mypugpuppies.com [code] <html> <base target="_self"> <META HTTP-EQUIV="REFRESH" CONTENT="3;URL=http://www.google.com"> </head> <body bgcolor="FFFFFF" text="#444444"> <? /*Script Made By Empire X.    Support  at http://www.empirex.net/forum/ You can edit who the e-mail is sent to and the subject, look below.*/ $MailTo = "julie@mypugpuppies.com"; //email to send the results to $MailSubject = "information"; //text in the Subject field of the mail $MailHeader = "From: My Pug Puppies"; //text in the From field of the mail $MailSent = "<center><img border=0 src=emailsent.gif width=450 height=350></center>"; //confirm image /* You can edit the for fields below */ if ($s1 == ""){ //name of field 1 } else {      $MailBody = "Name :$_POST['1'] //This value is inserted inthe mailbody:$_POST['1'] } if ($s2 == ""){ } else {      $MailBody .= "Company :$_POST['2'] } if ($s3 == ""){ } else {      $MailBody .= "E-mail :$_POST['3'] } if ($s4 == ""){ } else {      $MailBody .= "Subject : $_POST['4'] } if ($s5 == ""){ } else {      $MailBody .= "Website Rating :$_POST['5'] } if ($s6 == ""){ } else {      $MailBody .= "Referral :$_POST['6'] } if ($s7 == ""){ } else {      $MailBody .= "Message : $_POST['7'] } //Routine to send message { mail($MailTo, $MailSubject, $MailBody, $MailHeader);  //message send echo("$MailSent"); //Confirmation message. } ?> <p> <p> <p> <br> <font face="verdana" size="1"><a href="http://www.empirex.net">Powered by Empire X Form Mail v.1.0</a> <a href="http://www.empirex.net/db/">From The X Database</a><p> </body> </html>[/code]
  13. hi i do get the email but the page is blank i filled in the form sent it got the confirmation i check my emails there the message i open it but its blank nothing there no writing
  14. Hi i hope this is the right place to post this problem. I have a contact form on my site,when the form is filled out and sent all is well, i get the message saying email has been sent out. but when i go to retrieve the email the page is blank? what could be my problem
  15. explore

    html help

    Oh sorry guys I guess this has to be ask in the html forum
×
×
  • 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.