Jump to content

Form Processing!


DomainBlk

Recommended Posts

Hi Guys!

   

        Why does my form doesnt send in my email?

        This thing always appear! "This domain has been blocked"

        The e-add that I used is ertyu_grimreaper007@yahoo.com

        my domain is registered in 100webspace.com for free

       

 

       

this is my php script!

 

<?php

 

  $sendto = "you@yourdomain.com";

 

  $ccto = "email@yourdomain.com";

 

$report_errors = "NONE";

 

 

$setokurl = "2";

 

$okurls = "http://www.yourdomain.net/,www.yourdomain.net/,192.103.45.67";

 

 

$backbutton = "<br><br><b>Press the button again to submit.</b>";

 

 

if ($report_errors == "NONE") {

error_reporting(0);

}else{

error_reporting(E_ALL);

}

 

 

 

 

if ($setokurl == "1"){

 

  $found_url = "0";

  $referer =$_SERVER["HTTP_REFERER"];

  $referer = str_replace("://", "[CS]", $referer);

  $referer_sp = explode("/", $referer);

  $referer = "$referer_sp[0]";

  $referer .= "/";

  $referer = str_replace("[CS]", "://", $referer);

  $referer = strtolower($referer);

 

  $okurls = split(",", $okurls);

 

foreach ($okurls as $myokurls) {

 

$myokurls = strtolower($myokurls);

 

    if ($referer == strtolower($myokurls)) {

      $found_url = "1";

      }

 

  }

 

  if ($found_url == "0") {

  $ERROR_action = "bad_okurl";

  include("$PATH_error$PAGE_error");

  }

 

}

 

if ($HTTP_GET_VARS || ! $HTTP_POST_VARS || $_GET || ! $_POST) {

include("paulerror.php");

no_pst();

 

}else{

 

if (! $_POST) {

$_POST = "$HTTP_POST_VARS";

}

 

if (! $_SERVER) {

$_SERVER = "$HTTP_SERVER_VARS";

}

 

 

$year = date("Y");

$month = date("m");

$day = date("d");

$hour = date("h");

$min = date("i");

$tod = date("a");

 

 

$ip=$_SERVER["REMOTE_ADDR"];

 

$SEND_prnt = "The form below was submited by " . $_POST{"email"} . " from Ip address: $ip on $monthnameactual $month/$day/$year at $hour:$min $tod \n";

$SEND_prnt .= "-------------------------------------------------------------------------\n\n";

 

 

if ($_POST{"required"}){

 

 

  $post_required = $_POST{"required"};

  $required = split(",", $post_required);

  $reqnum = count($required);

 

for ($req=0; $req < $reqnum; $req++) {

 

$REQ_name = $required[$req];

$REQ_value = $POST{"$REQ_name"};

 

 

  if ($REQ_name == "email") {

    $goodem = ereg("^[^@ ]+@[^@ ]+\.[^@ \.]+$", $_POST{"email"}, $trashed);

 

        if (! $goodem) {

include("paulerror.php");

msng_email();

        }

 

  }

  elseif (! $_POST{"$REQ_name"}) {

$isreqe = "1";

$REQ_error .= "<li> $REQ_name ";

  }

 

          }

 

 

           

 

if ($isreqe == "1") {

include("paulerror.php");

msng_required();

}

 

 

}

 

 

 

 

 

 

 

 

foreach ($_POST as $NVPOST_name => $NVPOST_value) {

 

$NVPOST_value = str_replace("\n", "", $NVPOST_value);

$NVPOST_value = str_replace("\r", "", $NVPOST_value);

 

$NVPOST_value = preg_replace("'\cc:'si", "Cc ", $NVPOST_value);

$NVPOST_value = preg_replace("'\bcc:'si", "bcc ", $NVPOST_value);

$NVPOST_value = preg_replace("'\to:'si", "to ", $NVPOST_value);

$NVPOST_value = preg_replace("'\bc:'si", "bc ", $NVPOST_value);

 

 

 

if (strtolower($NVPOST_name) == "subject") {

 

$NVPOST_value = str_replace(":", ";", $NVPOST_value);

}

 

 

           

     

            if (strtolower($NVPOST_name) == "email") {

            $SEND_email = "$NVPOST_value";

    $SEND_email = str_replace(":", "", $SEND_email);

    $SEND_email = str_replace(" ", "", $SEND_email);

            }

 

           

 

  if (! $_POST{"sort"}) {

 

 

                         

                            if ($NVPOST_name == "subject" || $NVPOST_name == "sort" || $NVPOST_name == "required" || $NVPOST_name == "success_page"){}else{

                            $SEND_prnt .= "$NVPOST_name;  $NVPOST_value \n";

                            }

  }

 

 

}

 

 

 

 

 

 

 

  if ($_POST{"sort"}) {

 

 

 

$sortvars = split(",", $_POST{"sort"});

$sortnum = count($sortvars);

 

              for ($num=0; $num < $sortnum; $num++) {

      $SEND_prnt .= "$sortvars[$num]: " . $_POST{"$sortvars[$num]"} . " \n";

      }

 

  } 

 

 

 

 

 

 

 

if (! $ccto) {

$header = "From: $SEND_email\r\nReply-to: $SEND_email";

}else{

$header = "From: $SEND_email\r\nReply-to: $SEND_email\r\nCc: $ccto";

}

 

 

mail($sendto, $_POST{"subject"}, $SEND_prnt, $header);

 

 

 

    if (! $_POST{"success_page"}) {

 

include("paulerror.php");

default_success();

 

    }else{

    $successpage=$_POST{"success_page"};

    header("Location: $successpage"); 

    exit;

    }

 

 

 

}

 

 

?>

 

this is my html script:

 

<HTML>

<head>

<title>Form</title>

 

</HEAD>

<body marginheight="0" topmargin="0" link="0000ff" vlink="0000ff" alink="0000ff">                                                                                                                                 

<form action="paulform.php" method="POST" name="Subscribe">                                                           

 

<input type="hidden" name="success_page" value="http://www.angdomainmo.com/successparekoy.html">

 

<BR><BR>

 

<table width=500><tr><td>

 

<small><font face="Verdana" color="#0000FF"><b>Pare para makuha lahat ng impormasyon, pakilagyan na lang lahat ng blanks! <br> <BR></b> </font></font></small>

 

</td></tr></table>

 

<table><tr><td>

 

<p align="right"><font color="#000000">First Name: </font></td>

<td bgcolor="#FFFFFF"><input type="text" size="21"  name="firstname" maxlength="55"></td>

</tr>

 

<tr><td><p align="right"><font color="#000000">Last Name: </font></td>

<td><input type="text" size="21"  name="lastname" maxlength="55"></td>

</tr>

 

<tr><td><p align="right"><font color="#000000">

Phone: </font></td>

 

<td bgcolor="#FFFFFF"><input type="text" size="21" name="phone" maxlength="25"><font color="#ff0000" face="Verdana" size="1">(with area code) </font></td>

</tr>

 

<tr><td><p align="right"><font color="#000000">

Alt. Phone: </font></td>

<td><input type="text" size="21" name="work_phone" maxlength="25"><font color="#ff0000" face="Verdana" size="1">(with area code)</font></td>

</tr>

 

 

<tr><td><p align="right"><font color="#000000">

Work Phone: </font></td>

<td><input type="text" size="21" name="alt_phone" maxlength="25"><font color="#ff0000" face="Verdana" size="1">(with area code)</font></td>

 

</tr>

 

<tr><td><p align="right"><font color="#000000">Email Address: </font> </td>

 

<td><input type="text" name="email" size="21"></td>

</tr>

 

<tr><td BGCOLOR="#FFFFFF"><p align="right"><font color="#000000"> Country:</font></td>

<td BGCOLOR="#FFFFFF"><SELECT NAME="country">

<OPTION VALUE="Argentina">Argentina

<OPTION VALUE="Australia">Australia

<OPTION VALUE="Austria">Austria

<OPTION VALUE="Belgium">Belgium

 

<OPTION VALUE="Brazil">Brazil

<OPTION VALUE="Canada">Canada

<OPTION VALUE="Caribbean_Islands">Caribbean Islands

<OPTION VALUE="Chile">Chile

<OPTION VALUE="China">China

<OPTION VALUE="Colombia">Colombia

 

<OPTION VALUE="Denmark">Denmark

<OPTION VALUE="Ecuador">Ecuador

<OPTION VALUE="Egypt">Egypt

<OPTION VALUE="Finland">Finland

<OPTION VALUE="France">France

<OPTION VALUE="Germany">Germany

<OPTION VALUE="Greece">Greece

<OPTION VALUE="Greenland">Greenland

<OPTION VALUE="Hong_Kong">Hong Kong

<OPTION VALUE="Iceland">Iceland

<OPTION VALUE="India">India

 

<OPTION VALUE="Indonesia">Indonesia

<OPTION VALUE="Ireland">Ireland

<OPTION VALUE="Israel">Israel

<OPTION VALUE="Italy">Italy

<OPTION VALUE="Japan">Japan

<OPTION VALUE="Korea">Republic of Korea

 

<OPTION VALUE="Luxembourg">Luxembourg

<OPTION VALUE="Malaysia">Malaysia

<OPTION VALUE="Mexico">Mexico

<OPTION VALUE="Netherlands">Netherlands

<OPTION VALUE="New_Zealand">New Zealand

<OPTION VALUE="Norway">Norway

<OPTION VALUE="Philippines">Philippines

<OPTION VALUE="Portugal">Portugal

<OPTION VALUE="Russian">Russian Federation

<OPTION VALUE="Saudi_Arabia">Saudi Arabia

<OPTION VALUE="Singapore">Singapore

 

<OPTION VALUE="South_Africa">South Africa

<OPTION VALUE="Spain">Spain

<OPTION VALUE="Sweden">Sweden

<OPTION VALUE="Switzerland">Switzerland

<OPTION VALUE="China">Province Of China Taiwan

<OPTION VALUE="Thailand">Thailand

 

<OPTION VALUE="Turkey">Turkey

<OPTION VALUE="United Kingdom">United Kingdom

<OPTION VALUE="US" selected>United States

<OPTION VALUE="Venezuela">Venezuela

<OPTION VALUE="Viet_Nam">Viet Nam

<OPTION VALUE="N/A">Not listed

</SELECT><br>

</td></tr><tr><td></td><td BGCOLOR="#FFFFFF">

 

 

 

<p><input type="submit" value="     Submit     ">  </p>

</td></form>

</td></tr></table>

 

 

 

 

 

</center><br><br>

</center></div>

<br><br><br><br><br><br>

 

 

</BODY>

</html>

 

Sorry! for being a noob! and Sorry for my noobish question! and sorry for my bad english!

Anyway! thanks in advance!

 

 

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.