HighDots Forums  

Flash to PHP?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Flash to PHP? in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
jon gibbons
 
Posts: n/a

Default Flash to PHP? - 07-03-2008 , 03:59 AM






I have a flash form which sends to my php page, the 'vars' load into my
database and open a write doc and sends to email. in two "vars names".

But i can not print or echo any of the sent vars and i can not retrieve query
statements using the var names.

it is like the Vars pass straight through the php script without stopping.
there seems to be no logic why the database, email and write doc all read the
"vars" but not the echo, print or retrieval statements.

i am just being dumb? i have been trying for 3 weeks now...

// flash script

var send_lv:LoadVars = new LoadVars();
send_lv.Title = Title.text;
send_lv.Forename1 = Forename1.text;
send_lv.Surname1 = Surname1.text;
send_lv.onLoad = function(success:Boolean) {

// if the comments were sent to the server and you received a response, clear
the form fields and display an Alert message.
if (success) {
Title1.text = "";
Forename1.text = "";
Surname1.text = "";
Alert.show("Thank you for your Booking.An E Mail has been sent to your E Mail
Address Box.", "Success", Alert.OK);
} else {
// else you encountered an error while submitting to the server.
Alert.show("Unable to process your comments at this time.", "Server Error",
Alert.OK);
}
};
// send the variables from Flash to the remote PHP template.
send_lv.sendAndLoad("http://www.phupaiart.com/jon1.php",send_lv +
Forename1.text + Surname1.text,"POST");
};
this.submit_button.addEventListener("click",postBt nListener);

// php script

<?php # Script - handle_form.php


$title = $_POST['Title'];
$first_name = $_POST['Forename1'];
$last_name = $_POST['Surname1.text'];

echo "$title $first_name $last_name"
// i have tried multiple different ways and nothing appears.

// Aditionally this statement seems to be wrong... it works but displays empty
fields...

$q = "SELECT date AS text FROM honeymoon WHERE date BETWEEN '.$arrival.' AND
'.$departure.'";


Reply With Quote
  #2  
Old   
jon gibbons
 
Posts: n/a

Default Re: Flash to PHP? - 07-04-2008 , 06:07 AM






Thank you for your kind reply, I think the real solution is to buy your book.
I have the Larry book, php6, this deals with html (which is excellent for
html / php). But it does not deal with flash, I will try to locate some of
yours (Thailand).

Thank you again.
Jon
ps. i tried the date example in ch2 ?


Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.