Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6150393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:36:25+00:00 2026-05-23T19:36:25+00:00

Hi I have used this tutorial http://net.tutsplus.com/tutorials/javascript-ajax/submit-a-form-without-page-refresh-using-jquery/ to create php – jquery – ajax

  • 0

Hi I have used this tutorial
http://net.tutsplus.com/tutorials/javascript-ajax/submit-a-form-without-page-refresh-using-jquery/

to create php – jquery – ajax form , and now i have receiving empty form mails every day (2 emails every morning) even know, to access the page where the form is user needs first to login …

so how it can be that it send empty mails every day, from protected page …. /
The form has some checks to check if some fields are empty it does not send it … but still i am getting empty emails …

I thinking could it be some kind of web crawlers and bots to trigger this ? since it is always at the same time of the day, with no user logins and etc (it post user login info in mail, and it is empty in these mails)

Id it is these bots how to protect it ? if no – any other ideas why this could happen ?

Thanks

<?php
if ((isset($_POST['Firma'])) && (strlen(trim($_POST['Firma'])) > 0)) {
    $Firma = stripslashes(strip_tags($_POST['Firma']));
}
if ((isset($_POST['Adresse'])) && (strlen(trim($_POST['Adresse'])) > 0)) {
    $Adresse = stripslashes(strip_tags($_POST['Adresse']));
}
if ((isset($_POST['Telefon'])) && (strlen(trim($_POST['Telefon'])) > 0)) {
    $Telefon = stripslashes(strip_tags($_POST['Telefon']));
}
if ((isset($_POST['PostNr'])) && (strlen(trim($_POST['PostNr'])) > 0)) {
    $PostNr = stripslashes(strip_tags($_POST['PostNr']));
}
if ((isset($_POST['By'])) && (strlen(trim($_POST['By'])) > 0)) {
    $By = stripslashes(strip_tags($_POST['By']));
}
if ((isset($_POST['Email'])) && (strlen(trim($_POST['Email'])) > 0)) {
    $Email = stripslashes(strip_tags($_POST['Email']));
}
if ((isset($_POST['Fax'])) && (strlen(trim($_POST['Fax'])) > 0)) {
    $Fax = stripslashes(strip_tags($_POST['Fax']));
}
if ((isset($_POST['Web'])) && (strlen(trim($_POST['Web'])) > 0)) {
    $Web = stripslashes(strip_tags($_POST['Web']));
}

if ((isset($_POST['editorName'])) && (strlen(trim($_POST['editorName'])) > 0)) {
    $editorName = stripslashes(strip_tags($_POST['editorName']));
}
if ((isset($_POST['editorMail'])) && (strlen(trim($_POST['editorMail'])) > 0)) {
    $editorMail = stripslashes(strip_tags($_POST['editorMail']));
}

if ((isset($_POST['persons'])) && (strlen(trim($_POST['persons'])) > 0)) {
    $persons = $_POST['persons'];
}

if ((isset($_POST['username'])) && (strlen(trim($_POST['username'])) > 0)) {
    $username = $_POST['username'];
}

$personsname[] = array();
$personsmail[] = array();
$personsnews[] = array();
$personsmedelm[] = array();

ob_start();
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title> </title>
</head>
<body>
Firma : <?=$Firma;?><br/>
Adresse : <?=$Adresse;?><br/>
Telefon : <?=$Telefon;?><br/>
PostNr : <?=$PostNr;?><br/>
By : <?=$By;?><br/>
Email : <?=$Email;?><br/>
Fax : <?=$Fax;?><br/>
Web : <?=$Web;?><br/><br/><br/>

<?=$persons;?>

Redigeret af: <?=$editorName;?> &nbsp; - &nbsp; <?=$editorMail;?><br/>
Filled by : <?=$username;?>
</body>
</html>
<?php
$to = 'i@i.dk'; 
$email = 'i@i.dk';
$fromaddress = "i@i.dk"; 
$fromname = "i@i.dk";

require("phpmailer.php");

$mail = new PHPMailer();

$mail->From     = "i@i.dk"; 
$mail->FromName = "i@i.dk";
$mail->AddAddress("i@i.dk","i.dk");
$mail->AddAddress("i@i.dk","i.dk"); 
$mail->WordWrap = 50;
$mail->IsHTML(true);

$mail->CharSet = "UTF-8";
$mail->Encoding = 'quoted-printable';

$mail->Subject  =  "Mail";
$mail->Body     =  $body;
$mail->AltBody  =  "This is the text-only body";
if($Firma != '' && $Firma != null){
if(!$mail->Send()) {
    $recipient = 'i@i.dk';
    $subject = 'Mail';
    $content = $body;   
  mail($recipient, $subject, $content, "From: i@i.dk\r\nReply-To: i@i.dk\r\nX-Mailer: DT_formmail");
  exit;
}
}
?>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T19:36:25+00:00Added an answer on May 23, 2026 at 7:36 pm

    If you have access to your server logs, check what user-agents have connected to your site at those times. Probably is some kind of a bot, that tries to access every URL listed in your page’s source (also the URL javascript POSTs to, to send you an email). I bet you have your validation only in Javascript and you have no captcha?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have used a tutorial http://www.devcurry.com/2010/06/load-page-dynamically-inside-jquery-ui.html to dynammically load an aspx page into a
I have used code like this: http://msdn.microsoft.com/en-us/library/dw70f090.aspx to access database before when working in
I originally used this tutorial - http://icodeblog.com/2009/07/09/integrating-twitter-into-your-applications/ to put twitter into my app. It
I read some AJAX-Form tutorial like this . The tag form is used in
The following code is from a tutorial ( http://net.tutsplus.com/php/creating-a-php5-framework-part-1/ ), not mine. I have
I'm following this tutorial on Flash Pro CS4: http://www.baycongroup.com/flashCS4/09_flashCS4.html I have a button. I
I've used a tutorial ( http://support.microsoft.com/kb/317535 ) to create a VB.NET Class that exports
I used this tutorial http://delphi.about.com/od/kbthread/a/thread-gui.htm to create a class that asynchronously downloads a file
i am using authorize.net {aim} for payment gate way. I have used http://www.johnconde.net/blog/tutorial-integrating-the-authorizenet-aim-api-with-php/ class
I have used this code for extracting urls from web page.But in the line

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.