Flash
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Tutorialized Forums2D GraphicsFlash

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
  #1  
Old November 3rd, 2008, 02:51 AM
Pangaea Pangaea is offline
Contributing User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Feb 2006
Location: Ireland
Posts: 9 Pangaea New User: is a brand new recruit and a unknown entity at this point. 
Time spent in forums: 1 h 4 m 15 sec
Reputation Power: 0
Flash PHP Form Promblem

Hello again

Ive made a flash site, and im trying to make an email/contact form work.

I have 7 input boxes names (instance)

email_box
subject_box
message_box
message_box2
message_box3
message_box4

ive tried messing about with both the action script and php script
but when i upload the site and enter text into all 7 boxes, when i check the email that was sent to me.. only one of the text fields is returning.

Heres the action script code:------------------------------

stop();
System.useCodepage = true;
send_btn.onRelease = function() {
my_vars = new LoadVars();
my_vars.sender = email_box.text;
my_vars.subject = subject_box.text;
my_vars.message = message_box.text;
my_vars.message2 = message_box2.text;
my_vars.message3 = message_box3.text;
my_vars.message4 = message_box4.text;



if (my_vars.sender != "" and my_vars.subject != "" and my_vars.message != "") {
my_vars.sendAndLoad("mailer.php", my_vars, "POST");
gotoAndStop(2);
} else {
error_clip.gotoAndPlay("send1");
}
my_vars.onLoad = function() {
gotoAndStop("send2");
};
};

-------------------------------------------------------------


Heres the action PHP code:---------------------------------


<?php
$subject = $_REQUEST["subject"];
$message = $_REQUEST["message"];
$sender = $_REQUEST["sender"];
$message = $_REQUEST["message2"];
$message = $_REQUEST["message3"];
$message = $_REQUEST["message4"];

$full_message = $_SERVER['REMOTE_ADDR'] . "\n\n" . $message;
$message= $full_message;

$message = stripslashes($message);
$message = stripslashes($message2);
$message = stripslashes($message3);
$message = stripslashes($message4);
$subject = stripslashes($subject);
$sender = stripslashes($sender);

$subject = "Contact form ". $subject;

if(isset($message) and isset($subject) and isset($sender)){
mail("myemail@gmail.com", $subject, $message, "From: $sender");
}
?>

------------------------------------------------------------

the original code was off a template of a form with only 3 text input boxes:

email_box
subject_box
message_box

I copied one of the boxes 3 times, (because i needed more boxes)
and renamed their instances to:

message_box1
message_box2
message_box3

when i tested that with the original script (ac & php)
without::

my_vars.message2 = message_box2.text;
my_vars.message3 = message_box3.text;
my_vars.message4 = message_box4.text;

& without::

$message = $_REQUEST["message2"];
$message = $_REQUEST["message3"];
$message = $_REQUEST["message4"];



$message = stripslashes($message2);
$message = stripslashes($message3);
$message = stripslashes($message4);

it only sent one field out of my 7
.

im only starting off with ac and php, so i looked at both codes
to see how i can get message_box2,3,4 to send the data to my email, i think added the above additions to the code.

but still im not getting them, only one message box field is being sent.

can someone help me please?

i basically need this

name: (example text= 11111)
address: (example text= 22222)
phone: (example text= 33333)
mobile: (example text= 44444)
email: (example text= 55555)
order: (example text= 66666)
comments: (example text= 77777)


______________________________________
as the code is now, the form my email is receiving is

86.42.166.248

66666


thats all.

when i should be getting

11111
22222
33333
44444
55555
66666
77777
in my email


or if anyone knows how to get the email with the title of the input box beside it, as this example

from: customer@gmail.com
to: myemail@gmail.com
name:11111
address:22222
phone:33333
mobile:4444
email:5555
order:66666
comments:77777


anyway, hope anyone can help me out here

best regards
pangaea
__________________
Top RATED Girls on Cam Live ENJOY...

Reply With Quote
Reply

Viewing: Tutorialized Forums2D GraphicsFlash > Flash PHP Form Promblem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT