Jump to content

Recommended Posts

Hi There

Thanks for taking the time to answer my post. I have spent hours working on this and searching all sorts of forums for the answer with no luck.

I have built a Flash email contact form that sends the contact on to my email. Here is the PHP code I am using:
[code]<?php
$name = $_Post["namesubmit"];
$email = $_POST["emailsubmit"];
$phone = $_Post["phonesubmit"];
$address = $_Post["addresssubmit"];
$iam = $_Post["iamsubmit"];
$ihave = $_Post["ihavesubmit"];
$text = $_Post["textsubmit"];
$to = "XXX@highcamp.ca";
$subject = "Online Email Form";
$headers = "From: $email";
$message = "Name: $name\nEmail: $email\nPhone: $phone\nAddress: $address\nI am a: $iam\nI have a: $ihave\nMessage: $text";
mail($to, $subject, $message, $headers);  
?>[/code]
And here is the email I get:
To: XXX@highcamp.ca
From XXX@yahoo.ca (The email I entered in the Flash form)
Subject: Online Email Form
Message Body:
Name:
Email: XXX@yahoo.ca
Phone:
Address:
I am a:
I have a:
Message:

From this I know that Flash is talking to PHP correctly. I have changed the $email variable to other things and it still works I.E. $email = $_Post["namesubmit"]; and this returns from Bob or whatever name I enter in the name field.

I'm not really sure what is going wrong here. I am wondering if maybe it is something in the server setup?

Thanks again for taking the time and hopefully this isn't something too simple that will make me look like at idiot.

High Camp
P.S. if you want to see the Flash form it is at www.highcamp.ca/en/emailform.html
Link to comment
https://forums.phpfreaks.com/topic/12426-mail-not-sending-all-variables/
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.