Jump to content

Recommended Posts

Posted

Hello,

 

I have constructed the entire form within flash and set up the following function for sending the form:

 

function sendForm () {

my_lv = new LoadVars();

my_lv.flname = _parent.name_txt.text;

my_lv.email = _parent.email_txt.text;

my_lv.specialist = _parent.specialist_txt.text;

my_lv.themessage = _parent.message_txt.text;

my_lv.send ("??????", "???????");

nextFrame ();

}

 

I dont know to put for the bold ?'s

 

If anyone could help Id really appreciate it!

 

Thanks

Posted

Welcome to the forums, Bennett. While I don't use Flash (like to learn it, tho! :thumbup1: ), be patient...one of the flash guru's should be along to answer your question.

Posted
Something along the lines of,

Depends on how you want to process it.

I looked around for information and came up with this but it will not work either:

 

// Submit Button action

submit_btn.onRelease = function() {

//Add Path of the php file

feedbackpath = "mailto.php";

//

str1 = email.indexOf("@");

str2 = email.indexOf("@")+1;

str3 = email.charAt(str1+1);

str4 = email.lastIndexOf(".");

str5 = email.charAt(str4+1);

len = length(email);

counter = 1;

flag = 0;

while (Number(counter)<=Number(len)) {

Char = substring(email, counter, 1);

if (Char ne "@") {

flag = Number(flag)+1;

}

counter = Number(counter)+1;

}

}

submit_btn.onRelease = function () {

if (flname_txt.text == "" || email_txt.text == "" || themessage_txt.text == "" ) {

status_txt.text = "Please complete the entire form ...";

} else {

status_txt.text = "";

loadVariablesNum(feedbackpath+"?name="+name+"&email="+email+"&feedback="+suggestion, 0);

gotoAndStop(63);

}

};

 

any suggestions would he helpful

  • 3 weeks later...
Posted
do you have a mailto.php file?

yeah i figured it out - thanks

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...