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 701603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:37:42+00:00 2026-05-14T03:37:42+00:00

Upon submitting this form on my site. It send me to a page that

  • 0

Upon submitting this form on my site. It send me to a page that says.

“Use Back – fill in all fields Use
back! ! “

But this html isn’t in the mail script anywhere. Where could this be coming from? I started out using this contact form (http://www.ibdhost.com/contact/) then changed it a little.

Here is the mail script.

<?php session_start(); ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Sendemail Script</title>
</head>
<body>

<!-- Reminder: Add the link for the 'next page' (at the bottom) -->
<!-- Reminder: Change 'YourEmail' to Your real email -->
<?php
//the 3 variables below were changed to use the SERVER variable
$ip = $_SERVER['REMOTE_ADDR'];
$httpref = $_SERVER['HTTP_REFERER'];
$httpagent = $_SERVER['HTTP_USER_AGENT'];

$visitorf = $_POST['visitorf'];
$visitorl = $_POST['visitorl'];
$visitormail = $_POST['visitormail'];
$visitorphone = $_POST['visitorphone'];
//$notes = $_POST['notes'];
//$attn = $_POST['attn'];
$lookup = array(
    'The Election Report' => 'http://www.mydowmain.net/',
    '5 Resons' => 'http://www.mydomain.net/',
 'Report 3' => 'http://someotherurl3.com/',
 'Report 4' => 'http://someotherurl4.com/',
 'Report 5' => 'http://someotherurl5.com/',
    // et cetera for your other values
);

$attn = trim($_POST['attn']);
$url = $lookup[$attn];
//echo 'attn: ' . $attn . ', url:' . $url; die;

//additional headers 
$headers = 'From: US <info@mailinator.net>' . "\r\n";
//$headers .= 'BCC: kelbizzle@mailinator.com' . "\r\n";

$todayis = date("l, F j, Y, g:i a") ;
$subject = "your lead has downloaded a report.";
$subjectdp = "Someone has downloaded a report!";
$notes = stripcslashes($notes);
$message = "Dear PAl Affiliate,\n\nA prospective lead of yours has downloaded a report from our Website.\nAny contact information they have left and a link to the report they downloaded\ncan be found below. This is the perfect opportunity for you to open up a line of\ncommunication with the prospect and find out their intrests! If you have any questions\nabout this email please feel free to email us at info@mailinaot.net\n\n\nFrom: $visitorf $visitorl ($visitormail)\nTelephone Number: $visitorphone \nReport Downloaded:$url\n \n\nBest regards,\nThe Crew";
//$message = "$todayis [EST] \nAttention:  \nMessage: $notes \nFrom: $visitorf $visitorl ($visitormail) \nTelephone Number: //$visitorphone \nReport Downloaded:$url\nAdditional Info : IP = $ip \nBrowser Info: $httpagent \nReferral : $httpref\n";
$messagedp = "A Visitor has just downloaded a report. You can find their contact information below.\n
\n
***********************************************************************\n
From: $visitorf $visitorl\n
Email: $visitormail\n
Telephone Number: $visitorphone \n
Report Downloaded:$url\n
\n
\n
Best regards,\n
The Crew\n";
$messagelead = "Dear, $visitorf\n
\n
\n
We appreciate your interest. Below you will find the URL to download the report you requested.\n
Things are always changing in costa rica , so check back often. Also, check us out on Facebook & Twitter \n
for daily updates. If there is anything we can do at anytime to enhance your experience, please do\n
not hesitate to  contact us.\n
\n
To download your report simply click on the link below. (You must have Adobe Reader or an alternative PDF reader installed)\n
\n
*** Download Link ***\n
$url\n";
//check if the function even exists
if(function_exists("mail"))
{
 //send the email
 mail($_SESSION['email'], $subject, $message, $headers) or die("could not send email");
} else {
     die("mail function not enabled");
    } 
     //send the email to us
     mail('info@mailinator.com', $subjectdp, $messagedp);
     //send the email to the lead
     mail($visitormail, 'Thanks for downloading the report!', $messagelead, $headers);

    header( "Location: http://www.mydomain.com/thanks_report.php" );
    ?>

    </body>
    </html>
  • 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-14T03:37:43+00:00Added an answer on May 14, 2026 at 3:37 am

    According to the page you linked (an interesting shade of pink I might add 😉 ), you have a sendeail.php (though I assume it’s sendemail.php) and in that it contains the code:

    if(empty($visitor) || empty($visitormail) || empty($notes )) {
       echo "<h2>Use Back - fill in all fields</h2>\n";
       die ("Use back! ! "); 
    }
    

    You are implying that you’ve modified the above code to do what you want it to do, but did you change the location of the form POST on the page before? e.g. the example on your link posts to the page stated, if you haven’t updated that link to point to your new version – then it would account for this error. (A side note, you probably should make sure that you’ve refreshed the page with the user-completed form on it too).

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

Sidebar

Related Questions

I have a form with dynamically created input fields - upon submitting it I
2 Questions, I have a form that lists 3 locations. Upon submitting the form
Not exactly sure why this is happening, but upon click of a button I
I have an aspx page with one form submitting to itself. In the form
Upon discovering that SDL and X11 use the same keyboard key IDs (I think
I have a fancybox that loads a form that collects user input. In this
Upon invsetigating 'mu is too short's answer to this question , I noticed that
Upon page load I want to move the cursor to a particular field. No
Upon AD Import for SharePoint, MOSS does this automatically: Office SharePoint Server 2007 automatically
I have a page upon which a user can choose up to many different

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.