Welcome, Guest
  • Author Topic: PHP Contact Form 'mail sent' Alternatives  (Read 1617 times)

    Subfocal

    • Server what's that
    • *
    • Posts: 5
      • View Profile
    PHP Contact Form 'mail sent' Alternatives
    « on: 09/11/10, 11:59 »
    Hi all,

    I'm still using this very simple but perfectly decent set-up for my website's contact form -

    http://www.flash-db.com/Tutorials/email/index.php

    However I was wondering if it would be possible to display an image instead of the 'mail sent' message text.

    The code in the PHP script is this -

    Quote
    print "&status=mail sent - we will be in touch with you shortly&"
    ?>

    What should it be if I want to display an image instead of this text? Is this even possible?

    Thanks in advance if anyone knows!  :)

    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    Re: PHP Contact Form 'mail sent' Alternatives
    « Reply #1 on: 09/11/10, 15:30 »
    if you use a html enhanced textbox, you can insert a <img source='picturepath/picturefile.jpg'> tag.
    Or you just sendback a ok, which leads to a loadMovie('picturepath/picturefile.jpg'); of a movieclip instance, or ... several other ways loading images, after data is returned from the server.
    happy flashing
    8)
    Ronald

    Subfocal

    • Server what's that
    • *
    • Posts: 5
      • View Profile
    Re: PHP Contact Form 'mail sent' Alternatives
    « Reply #2 on: 09/13/10, 14:59 »
    Hey Ron,

    I see. So if this is the reply code -

    Quote
    myreply.onLoad = function (success) {
            if(!success)
                _parent.status = gotoAndPlay(sent);
            else
                _parent.status = this.status;
        };

    How do I change it? I tried this but it isn't working -

    Quote
    myreply.onLoad = function (success) {
            if(!success)
                this.gotoAndPlay('sent_mov');
    };

    Obviously sent_mov is the movie I'm trying to run.

    Anyway, as you can probably tell, I'm not too good at the action script side of things.  Hope you can help.

    Thanks


    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    Re: PHP Contact Form 'mail sent' Alternatives
    « Reply #3 on: 09/14/10, 05:24 »
    how do you inser the sentMov?

    Depending on the version of flash, you can use createEmptyMovieClip and loadMovie, or a Loader instance.

    then you address this instance and run the play methode.
    happy flashing
    8)
    Ronald