PDA

View Full Version : getting data from input-form into email? whats wrong with my script?


creamroyale
02-14-2001, 12:28 AM
hi!

I try now for hours to build a simple email-form for my flash-site. (my server doesn't support CGI or PHP or something, I think, and I don't have time to find out)

I did it exactly as described in one of Macromedia's tutorials:

I made two input-textfields, one named "varsubject" and one "varbody". then a button with following script attached:

mailto:myadress@company.com?subject="&varsubject&"&body="&varbody

however I never get anything into my email's subject or body? (and if I click "expression" everything is red/wrong too) ????

thanks a lot for any help!!

Jesse
02-14-2001, 02:25 AM
Flash 5? That's flash 4 syntax. Use + in place of the &'s there.

Change that code to:

"mailto:myadress@company.com?subject=" + varsubject + "&body=" + varbody

My example here works:

on (release) {
emailAddy = "person@place.com";
getURL ("mailto:" + emailAddy +"?subject=Test&body=" + body);
}


Cheers

Jesse