-
i'm fairly new to flash and as my first project i decided to creat an all-flash site for my band, cleaner (www.moreclean.com). this site contains, among other features, a flash contact page that gets loaded into the main swf movie via a load movie into target command. on this contact page, users can type in their name and email address, designate an addressee and a subject (either preselected or typed by the user), and type in a message. these variables are sent to "http://www.moreclean.com/cgi-bin/mailform" by using a "load variables into location" command with "post" as the action.
the problem is this...
when i test the main movie and/or the standalone contact.swf locally on my computer through either flashplayer, ie5 or nav4, everything happens as it should: the variables are collected and get sent to a cgi script on my server space and an email is kicked back to me (i send all test emails to myself). now when i upload these files onto my server space and test it online, an email no longer gets sent back to me. i don't know where the problem lies... are the variables not getting to the script for some reason? i know the permissions on the cgi-bin and the script are set up correctly otherwise it wouldn't work even locally, right?
anyone have any ideas?
-
Here try this, it will also validate your form elemnets before posting to your FormMail program..
On (Release)
Set Variable: "empty_name_error" = "Please fill in the Name field"
Set Variable: "empty_email_error" = "Please fill in the Email field"
Set Variable: "format_email_error" = "Your Email format is in correct"
Set Variable: "empty_subject_error" = "Please fill in the Subject field"
Set Variable: "empty_message_error" = "Please fill in the Message field"
Set Variable: "error_count" = error_count + 1
If (name eq "" or name eq empty_name_error &"-" &(error_count -1))
Set Variable: "name" = empty_name_error &"-" &error_count
Go to and Stop ("Your thank you movie")
Else If (recipient eq "" or recipient eq empty_email_error &"-" &(error_count -1))
Set Variable: "recipient" = empty_email_error &"-" &error_count
Go to and Stop ("Your thank you movie")
Else If (recipient ne "")
Set Variable: "x" = 0
Set Variable: "found1" = 0
Set Variable: "found2" = 0
Loop While (x <> (Length(recipient) +1))
If ((Substring (recipient, x, 1)) eq "@")
If (x > 2)
Set Variable: "temp1" = Substring (recipient, x, 1)
Set Variable: "found1" = x
End If
End If
If ((Substring (recipient, x, 1)) eq ".")
Set Variable: "found2" = x
If (found1 > 0 and ((found1 + 2) < found2))
Set Variable: "temp2" = Substring (recipient, x, 1)
End If
End If
Set Variable: "x" = x + 1
End Loop
If (temp1 ne "@" or temp2 ne "." or (found1 > 0 and (found2 + 3) > x))
Set Variable: "recipient" = format_email_error &"-" &error_count
Set Variable: "temp1" = ""
Set Variable: "temp2" = ""
Go to and Stop ("Your thank you movie")
Else If (subject eq "" or subject eq empty_subject_error &"-" &(error_count -1))
Set Variable: "subject" = empty_subject_error &"-" &error_count
Go to and Stop ("Your thank you movie")
Else If (message eq "" or message eq empty_message_error &"-" &(error_count -1))
Set Variable: "message" = empty_message_error &"-" &error_count
Go to and Stop ("Your thank you movie")
Else
Load Variables ("http://www.moreclean.com/cgi-bin/mailform", 1, vars=POST)
Set Variable: "name" = ""
Set Variable: "recipient" = ""
Set Variable: "subject" = ""
Set Variable: "message" = ""
Set Variable: "error_count" = ""
Play
End If
End If
End On
-
thanks! i'll give that a shot and see where it takes me.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|