# Flash Forms Problemo

**URL:** https://forum.kirupa.com/t/flash-forms-problemo/204734
**Category:** flash
**Created:** [October 23, 2006, 2:14am UTC](https://forum.kirupa.com/t/flash-forms-problemo/204734 "2006-10-23T02:14:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Ksuguy25](https://avatars.discourse-cdn.com/v4/letter/k/fbc32d/32.png) [@Ksuguy25](https://forum.kirupa.com/u/Ksuguy25)
#### Post date: [October 23, 2006, 2:14am UTC](https://forum.kirupa.com/t/flash-forms-problemo/204734/1 "2006-10-23T02:14:37Z")

</div>

Okay i’m re using code in my current project that i’m using. I’m making a new member registration form for a website that i’m building. THe last project that i made the website by using one swf’ file and used PHP. I made a joinFormMC and named contactForm as my instance.

This time i made a seperate swf file (not a movie clip) for the entire form but reused the previous code. When I click submit, it dosn’t want to work. Not even in the test movie mode.

```auto

stop();

// --------------------<send from LoadVars>-------------------- \\
var gatherForm:LoadVars = new LoadVars();

function sendForm() {
    gatherForm.email_to = "ksuisa0607@gmail.com";
    gatherForm.visitor_lastname = contactForm.userLastName.text;
    gatherForm.visitor_name = contactForm.userName.text;
    gatherForm.visitor_email = contactForm.userEmail.text;
    gatherForm.visitor_origin = contactForm.userOrigin.text;
    
    if (contactForm.userFreshman.selected){
   gatherForm.visitor_freshman = true
    }
    if (contactForm.userSophomore.selected){
   gatherForm.visitor_sophomore = true 
    }
    if (contactForm.userJunior.selected){
   gatherForm.visitor_junior = true
   }
    if (contactForm.userSenior.selected){
    gatherForm.visitor_senior = true
}
    
    
    gatherForm.send("http://ksuccf.org/send.php","POST");
}
// --------------------</send from LoadVars>-------------------- \\

_global.style.setStyle("fontFamily", "Bitstream Vera Sans");
_global.style.setStyle("fontWeight", "bold");
_global.style.setStyle("fontSize", 12);
_global.style.setStyle("color", 0x000000);

//--------------------<submit button AS>---------------------\\

this.contactForm.submitBtn.btnLabel.autoSize = "center";
this.contactForm.submitBtn.btnLabel.text = "submit";

 onRollOver
this.contactForm.submitBtn.onRollOver = function() {
    contactForm.submitBtn.gotoAndStop (2);
}

 onRollOut
this.contactForm.submitBtn.onRollOut = function() {
    contactForm.submitBtn.gotoAndStop (1);
}

onRelease
this.contactForm.submitBtn.onRelease = function() {
    if (contactForm.userEmail.text == "" || contactForm.userName.text == "") {
        gotoAndStop("error");
    } else {
        sendForm();
        gotoAndStop("correct");
    }
}

```

I saved as ISA Join just letting you know. I cannot upload because its a huge file that is beyond the max of what this system requires. (76 MB) so if someone private email me their email address so i can send my file to you.  
Thank you so much.

Gabriel

---

<div class="post-metadata">

### Author: ![Ksuguy25](https://avatars.discourse-cdn.com/v4/letter/k/fbc32d/32.png) [@Ksuguy25](https://forum.kirupa.com/u/Ksuguy25)
#### Post date: [October 23, 2006, 3:29pm UTC](https://forum.kirupa.com/t/flash-forms-problemo/204734/2 "2006-10-23T15:29:12Z")

</div>

anyone???

[quote=Ksuguy25;1983443]Okay i’m re using code in my current project that i’m using. I’m making a new member registration form for a website that i’m building. THe last project that i made the website by using one swf’ file and used PHP. I made a joinFormMC and named contactForm as my instance.

This time i made a seperate swf file (not a movie clip) for the entire form but reused the previous code. When I click submit, it dosn’t want to work. Not even in the test movie mode.

```auto

stop();

// --------------------<send from LoadVars>-------------------- \\
var gatherForm:LoadVars = new LoadVars();

function sendForm() {
    gatherForm.email_to = "ksuisa0607@gmail.com";
    gatherForm.visitor_lastname = contactForm.userLastName.text;
    gatherForm.visitor_name = contactForm.userName.text;
    gatherForm.visitor_email = contactForm.userEmail.text;
    gatherForm.visitor_origin = contactForm.userOrigin.text;
    
    if (contactForm.userFreshman.selected){
   gatherForm.visitor_freshman = true
    }
    if (contactForm.userSophomore.selected){
   gatherForm.visitor_sophomore = true 
    }
    if (contactForm.userJunior.selected){
   gatherForm.visitor_junior = true
   }
    if (contactForm.userSenior.selected){
    gatherForm.visitor_senior = true
}
    
    
    gatherForm.send("http://ksuccf.org/send.php","POST");
}
// --------------------</send from LoadVars>-------------------- \\

_global.style.setStyle("fontFamily", "Bitstream Vera Sans");
_global.style.setStyle("fontWeight", "bold");
_global.style.setStyle("fontSize", 12);
_global.style.setStyle("color", 0x000000);

//--------------------<submit button AS>---------------------\\

this.contactForm.submitBtn.btnLabel.autoSize = "center";
this.contactForm.submitBtn.btnLabel.text = "submit";

 onRollOver
this.contactForm.submitBtn.onRollOver = function() {
    contactForm.submitBtn.gotoAndStop (2);
}

 onRollOut
this.contactForm.submitBtn.onRollOut = function() {
    contactForm.submitBtn.gotoAndStop (1);
}

onRelease
this.contactForm.submitBtn.onRelease = function() {
    if (contactForm.userEmail.text == "" || contactForm.userName.text == "") {
        gotoAndStop("error");
    } else {
        sendForm();
        gotoAndStop("correct");
    }
}

```

I saved as ISA Join just letting you know. I cannot upload because its a huge file that is beyond the max of what this system requires. (76 MB) so if someone private email me their email address so i can send my file to you.  
Thank you so much.

Gabriel[/quote]
