Jump to content

Import Request Variables Command HELP


DigitalGuard

Recommended Posts

Hello,

 

I currently use flash to get the info and send it to php and mail it out. Now for some reason my information is not getting posted, I know someone told me was I needed to put Import Request Variables command since my server has Register Globals OFF. Here is my script. How do i add it on this. This is my sendmail.php

 


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Contact Us </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<?
// Your Email Address
$empf="support@testing.com";

// Message Send to Sender
$vtext="Thank you for contacting Us, Your e-mail has been recieved and we will get back to you as soon as possible! Thank You, Administration";

//The subject you recieve
$betreff="Email From Testing.com ";

// Information in the email you recieved.
$anrede="The Following Information was sent via web site:";

// Sending Confirmation to sender / subject line
$bestaetigung="Thanks for Contacting Testing.com";

//Do Not Touch
$message=str_replace("\\\"","\"",$message);
$message=str_replace("\'","'",$message);
urlencode ($text);
$message=str_replace("%0D","\n",$message);

//Do Not Touch
$report = "Email Sent Via:"."\n"."---------------------------------"."\n\n"."remote host: ".$REMOTE_HOST."\n".
"remote adr: ". $REMOTE_ADDR."\n"."browser: ". $HTTP_USER_AGENT."\n\n\n\n";

//Do Not Touch
$inhalt=$anrede."\n\n"."Name: ".$name."\n"."E-Mail: ".$email."\n"."Website: ".$website."\n"."Telephone: ".$telephone."\n"."Fax: ".$fax."\n"."Address1: ".$address1."\n"."Address2: ".$address2."\n"."City: ".$city."\n"."State: ".$state."\n"."Zip Code: ".$zip."\n"."Country: ".$country."\n"."Message: ".$message."\n\n\n\n".$report;

// Do not touch
mail($empf,$betreff,$inhalt,"From: ".$email);
mail($email,$bestaetigung,$vtext,"From: ".$empf);

// <---------------------- this is the end my friend ----------------------------->
?>

 

Can any1 help me add this please.

 

Thank You

DigitalGuard

Link to comment
Share on other sites

Hi There,

 

 

2 helpful tips ::

 

1. remove all html from the page (unless you want the page to be displayed, if not just rip it out )

2. you need to get data from your flash into this page, you have two ways. either POST or GET

 

ex (assuming flash sends the $message var)

 

<?php 
$message = $_GET['message']; // if you are passing that var via a string 
$message = $_POST['message']; // if you are posting that var to the page 
$message = $_REQUEST['message']; // if you don't know which one to choose 

// to see what is being passed to the page you can do this:
echo '<pre>';
print_r($_REQUEST);
exit();

 

Enjoy

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.