Jump to content

flash form response problem


Visualanté

Recommended Posts

i receive my reply but no variables....whats my problem

[b]php code[/b]
<?php

$TextVariable = '&results=';

$response = 'Data Sent. Thank You..';

echo $TextVariable;

echo $response;

/* recipients */

$recipient .= "my email" ;

/* subject */

$subject = "Contact from Site";

/* message */

$message .= "Name: $fname

Email: $email

Phone: $phone

Comments: $party";

/* additional header pieces for errors, From cc's, bcc's, etc */

$headers .= "From: $name <$email>n";

/* and now mail it */

mail($recipient, $subject, $message, $headers);

?>


[b]acionscript[/b]

on (release) {

// logical operator makes sure the textfield is not blank. IndexOf checks for "@" and "." characters in textfield

if (!email.length || email.indexOf("@") == -1 || email.indexOf(".") == -1) {

results = "Please check your e-mail address.";

} else if (!comments.length) {

results = "Please enter your comments.";

} else if (!name.length) {

results = "Please enter your name.";

} else if (!phone.length) {

results = "Please enter your phone.";

} else {

loadVariablesNum ("contact.php", 0, "POST");

results = "Sending Data...";

}

}
Link to comment
https://forums.phpfreaks.com/topic/33685-flash-form-response-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.