Everybody! This is important. In a few days, these forums will be moving over to using the totally sweet Discourse platform. To ensure this migration happens smoothly with no loss of content, these forums are currently in a read-only mode. I do apologize for the inconvenience.

There is never a good time to turn the forums off for an extended period of time, but I promise the new forums will be a billion times better. I'm pretty sure of it.

See you all on the other side in a few days, and if you have any (non-technical) questions, please e-mail me at kirupa@kirupa.com. For technical questions, try to find a tutorial that corresponds to what you are looking for and post in the comments section of that page.

Cheers,
Kirupa

Results 1 to 2 of 2

Thread: externally loaded contact form

  1. #1

    externally loaded contact form

    sorry, i know this topic has been done to death but ive gone through all the searched threads, but nothing seems to be fixing my prob

    ive got main.swf, and im loading contact.swf which contains the form based on senoculars tut
    on my send button i have

    Code:
    on (release) {
        if (form.n_ame.text.length == 0) {
            error.gotoAndPlay("name");
        }else if (form.e_mail.text.length == 0 || form.e_mail.text.indexOf("@") == -1 || form.e_mail.text.indexOf(".") == -1) {
            error.gotoAndPlay("email");
        }else if (form.s_ubject.text.length == 0) {
            error.gotoAndPlay("subject");
        }else if (form.m_essage.text.length == 0) {
    		error.gotoAndPlay("message");
    	}else{
    		_parent.container.form.loadVariables("email.php", "POST");
    		_level0.container.form.loadVariables("email.php", "POST");
    		_root.container.form.loadVariables("email.php", "POST");
    		form.loadVariables("email.php", "POST");
    		form.m_essage.text = "Sent";
    		form.n_ame.text = "Sent";
    		form.e_mail.text = "Sent";
    		form.s_ubject.text = "Sent";
    		form.p_hone.text = "Sent";
    		form.w_ebsite.text = "Sent";
        }	
    }
    container is the instance of the mc that contact.swf is loaded into, and i set parent, level0, root, so theres no way id miss it, and the chmod on the server is 777
    i know the conditions are working because the sent messages appear, however i dont recieve any emails, ive checked my junk/filters etc, nothing
    ;o if anyone can help out i'd really appreciate it
    thanks in advance

  2. #2
    if (form.n_ame.text.length == 0) {
    is this wright??? form.n_ame??

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012