473,788 Members | 2,705 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Flash contact form - PHP code problem

1 New Member
I am new to the forum, so first off, hello to everyone!

I cannot get the php code below to send mail from website to my email address. When i use it, it throws up no error warnings at all, i just do not recieve any mail. I have no knowledge of PHP, therefor have no idea what needs to be changed in this code, which was provided for me to use with the flash form. I am hoping someone can help. I did change the you@yourdomain. com and info@yourdomain .com to my own address but changed nothing else in the php code.

[php]<?

$contactfield1= $HTTP_GET_VARS["contactfie ld1"]
$contactfield2= $HTTP_GET_VARS["contactfie ld2"]
$contactfield3= $HTTP_GET_VARS["contactfie ld3"]
$contactfield4= $HTTP_GET_VARS["contactfie ld4"]



$email_from = "you@yourdomain .com";
$email_subject = "" ;
//$email_txt = "";
$email_to = "info@yourdomai n.com";



$email_message = "field1: $contactfield1\ n
field2 :$contactfield2 \n
field3 :$contactfield3 \n
field4 : $contactfield4 \n

";

mail($email_to, $email_subject, $email_message, $email_from);


?>[/php]
Mar 26 '07 #1
1 2873
Motoma
3,237 Recognized Expert Specialist
Try and break things down; start with a PHP script with simple strings in the mail() command to see if that works. Most productions systems have PHP errors disabled, so include the following at the top of the page:
[PHP]
error_reporting (E_ALL);
ini_set('displa y_errors', True);
[/PHP]
Mar 27 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
4697
by: paolazi | last post by:
HI I have a flash templates..that uses php as well now I have a problem with my contact page as follows: the user enter his name, email and message into flash input whose Var are: your_name, your_email and message. then the user should press the send button and the actionscript code for the send button is: on (release) { url_var = "server_option=" + _root.server_option + "&recipient=" + _root.recipient + "&your_name=" +...
0
1298
by: Derek Moore | last post by:
Hi any one help with this one below is the "contact.php form" and the contents of the "button "from with in flash! but all i get back is the field names but no content any ideas??? contact.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />...
6
3524
by: Derek | last post by:
Hi all any one please help, i have a buttin in flash 8 which gets a form contact.php but when it is pressed the emial ruturns empty as follows 1 the flash button 2 the form 3 the email outcome (empty) the form on (release) { _parent.getURL("contact.php","_blank", "GET"); _parent.name=""; _parent.phone="";
2
4072
by: staryeyes47 | last post by:
Hi, I am creating a contact page for a my website and I am having a bit of trouble. I have created the form in flash, and am using a php file to send the email to myself. The form works OK, but when it deliver's it to my inbox, I am getting all of this jibberish with the email Example: Name: <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="14" COLOR="#242868" LETTERSPACING="0" KERNING="0">Test</FONT></P></TEXTFORMAT>...
1
1868
imarkdesigns
by: imarkdesigns | last post by:
Good day guys... anyone here can help me correct the function of my Flash Mail Form using ASP to send the data... CDO.Message.1 error '8004020d' At least one of the From or Sender fields is required, and neither was found. /contact.asp, line 20 this is the message when i hit Send on my Flash Form to send the information...
0
9656
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9498
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10113
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8995
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5402
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5538
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4074
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3677
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.