PDA

View Full Version : Menu and contact form questions


davidg369
08-29-2007, 11:28 AM
Hey everyone,

Just had a couple of questions re: some problems I'm having with a site I've done for a friend. The site is here (it's an older version that I've sorted a few problems out with, but the ones I need help with are there):

http://www.users.on.net/~davidgardner

1. Inside the main page, sometimes if you scroll too quickly over the 'toyohari' and 'clinic' buttons, one of them won't close properly, so there'll be two drop downs open at the same time. They're set up with closer buttons on rollout. Does anyone know how to fix this problem?

2. My contact form doesn't seem to send it's info anywhere! My page is called index.htm, and I have a php file called index.php with the text below inside it which I think should cause the form to send properly, but it doesn't. Does hosting need to be set up specially for php? Anyone know what's causing this?

.php text:

<?

$to = "emailaddressinsertedhere";
$msg = "$name\n\n";
$msg .= "$message\n\n";

mail($to, $subject, $msg, "Message From: Online client\nReply-To: $email\n");

?>

I'd really appreciate any help, the menu is a bit sloppy when it doubles up, and I really like the contact form, but if I can't get it working I'll have to replace it with an email link.

Thanks very much in advance!
David

Paul Ferrie
08-29-2007, 02:10 PM
$name =$_POST['name'];
$message =$_POST['message'];
$email =$_POST['email'];
$to = "emailaddressinsertedhere";
$msg = "$name\n\n";
$msg .= "$message\n\n";

mail($to, $subject, $msg, "Message From: Online client\nReply-To: $email\n");

Try that for you php script.
If it still dosnt work then can you please post the code your using in flash to submit the information to the script.

davidg369
09-03-2007, 02:26 AM
Thanks for your help Paul.

I think the problem might be that I'm not actually using any code to send the info.

From the tutorial I did, I thought as long as the variable names for the different fields were correct then that .php would work to transmit the info.

What code should I be using within flash?

Thanks again,
David

Paul Ferrie
09-03-2007, 07:18 AM
Check the flash doc's for sendAndLoad()