Send Mail via php using Flash 8

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post February 1st, 2010, 1:03 pm

getting a 404 bryce
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post February 1st, 2010, 1:03 pm

  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post February 1st, 2010, 1:05 pm

Try now there was a typo. Sorry.
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post February 1st, 2010, 1:24 pm

OK got it that time. Thanks
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post February 1st, 2010, 6:03 pm

I did find and corrected several issues but had too much going on at work to solve everything before I left. I'll do my best to post it early in the AM.
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • gmoeller54
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Jan 15, 2010
  • Posts: 10
  • Status: Offline

Post February 3rd, 2010, 6:52 am

thanks for supplying the CS3 version!
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post February 3rd, 2010, 8:08 am

I still haven't been able to give your file a lot of attention but I can give you some things to get you closer to a working form.

First I'm really not sure why you have the code you do for the reset button. You have:

ACTIONSCRIPT Code: [ Select ]
on (release) {
     getURL("contact.php", "_blank", "GET");
     name = "Your Name:";
     phone = "Your Phone:";
     company = "Your Company:";
     email = "Your Email:";
     message = "Message:";
}
  1. on (release) {
  2.      getURL("contact.php", "_blank", "GET");
  3.      name = "Your Name:";
  4.      phone = "Your Phone:";
  5.      company = "Your Company:";
  6.      email = "Your Email:";
  7.      message = "Message:";
  8. }


First of all you don't have a file contact.php. Even if you do, it isn't going to accomplish what you want with the reset button. To reset you simply want to make your text field variables blank. This is sufficient to do that:

ACTIONSCRIPT Code: [ Select ]
on (release){
     name = "";
     phone = "";
     company = "";
     email = "";
     message = "";
}
  1. on (release){
  2.      name = "";
  3.      phone = "";
  4.      company = "";
  5.      email = "";
  6.      message = "";
  7. }


For your text fields one thing I would suggest is change your fields from multi-line to single-line except for the Message field. I would also suggest putting in some character limits. Your maximum characters are all set to 0. I would change them to approx 30 except for message which I would say around 500 would be fine.

For your submit button you don't really need this
ACTIONSCRIPT Code: [ Select ]
var name = this._parent.name.text
var company = this._parent.company.text
var phone = this._parent.phone.text
var email = this._parent.email.text
var message = this._parent.message.text
  1. var name = this._parent.name.text
  2. var company = this._parent.company.text
  3. var phone = this._parent.phone.text
  4. var email = this._parent.email.text
  5. var message = this._parent.message.text


also for error.gotoAndPlay("error"); and error.gotoAndPlay("send"); lose "error." Just use the gotoAndPlay. In prior posts above "error" is the instance of a movieclip I loaded. You don't have an error movieclip.

After those changes your errors start to display but there is still a problem. If you leave all your fields blank and click submit it should take you to the error clip but it doesn't it takes you to sent. If you add a trace on your variables you'll see that initially it's adding some HTML <p> tags to your text fields and I'm not sure why. Unfortunately I've been too busy to give it any kind of time to trouble shoot. That's as far as I got and won't have any time to look at it again until perhaps this weekend. But that should give you some things to go with.

Also check your Actions on your error and sent tweens. I'm think some of your gotoAndPlay's are set to the wrong frames. In particular the close button.

I'd also suggest moving your error tweens farther on the timeline to where your text fields are hidden. It looks rather amateurish to display the errors over the text fields.

I know that's not a lot but hope it helps you narrow things down.
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • gmoeller54
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Jan 15, 2010
  • Posts: 10
  • Status: Offline

Post February 8th, 2010, 1:20 pm

I have gone through all of your suggestions, and it looks as though I have arrived exactly where you left off.

For whatever reason, if you were to leave the fields blank and only hit submit, it doesn't send it to the error frame, but rather to the sent frame.

ACTIONSCRIPT Code: [ Select ]
     if (name eq "" or phone eq "" or email eq "" or message eq "") {
         gotoAndPlay(3);
     } else {
         loadVariablesNum("vmail.php", 0, "POST");
  1.      if (name eq "" or phone eq "" or email eq "" or message eq "") {
  2.          gotoAndPlay(3);
  3.      } else {
  4.          loadVariablesNum("vmail.php", 0, "POST");


This is the code being used to check for empty fields
seems to be skipping right over this...is the syntax correct?

Also, it's not sending to my email anything at all.

I have loaded up the new version, with corrected frame calls.
I also edited the .php because I found a couple more span tags.
soldesigns(dot)com/silicone/gmoeller_contact_form_2_8_10.zip

Would love to get this guy working!
  • gmoeller54
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Jan 15, 2010
  • Posts: 10
  • Status: Offline

Post February 11th, 2010, 10:14 pm

Please guys...I would really like to resolve this form...I'll be happy to give a donation if that's what it's going to take...seriously
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post February 12th, 2010, 5:48 am

I hadn't had the chance to look at what you revised. But that was sort of what I was saying. It isn't skipping over it per se. For some reason when the flash loads, it loads some HTML into those fields (Which you can see if you trace your variables like I suggested). Then after you hit submit or reset the fields are empty. I'll try to look at it again later today, but really going to be pretty busy all weekend. OK actually I'm taking my girlfriend to a casino and Flash is probably going to be the last thing on my mind.


I can't remember exactly what the HTML is but I do remember it was a <p> tag with a text-align attribute. That's where I would troubleshoot. Why that is being added.
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • gmoeller54
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Jan 15, 2010
  • Posts: 10
  • Status: Offline

Post February 12th, 2010, 8:09 am

ha...
i completely understand...
have fun with the girly...

not too sure how to "trace" variables...
but will try to google it...

thanx!
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post February 12th, 2010, 8:45 am

Trace is simple

trace(name);
trace(message);
etc...

Then when you test your movie it will output the variable contents. If you see nothing they are empty.
In your case something is setting the initial value of the variables to some HTML code and I didn't have time to dig into what was doing it.
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • gmoeller54
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Jan 15, 2010
  • Posts: 10
  • Status: Offline

Post February 16th, 2010, 4:37 pm

I'm sorry for being such a pest, but I am having no luck trying to track down what is going on. Could you please look at my file when you have a moment? Thanx!!
  • palmershire
  • Born
  • Born
  • No Avatar
  • Joined: Mar 03, 2010
  • Posts: 2
  • Status: Offline

Post March 3rd, 2010, 10:20 am

When sending my form, using this code:

on (release) {
getURL("mailto:(email)" + "?subject=" +subject+ "&body=" +body);
}


both the subject field and message body show up as:

<p align="left"></p>

or some other odd text when viewed from my email account.

*I've checked both the form fields and neither show the <> mentioned earlier in this forum. I could really use some help resolving this issue. Thanks!

**Since we're not allowed to post external links within the forum, I had to substitute (email) for the text that actually exists in the get URL section following the mailto: function.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post March 4th, 2010, 9:58 am

That's the same thing that gmoeller54 had showing up in his. That's not supposed to exist if you have HTML turned off in the text fields.

In his case it was disabled and still that was happening and I have no clue why. In your case, check your text fields and make sure you don't have HTML turned on.
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • palmershire
  • Born
  • Born
  • No Avatar
  • Joined: Mar 03, 2010
  • Posts: 2
  • Status: Offline

Post March 9th, 2010, 8:45 am

After checking the HTML settings, what I found is that if I changed Flash 8 to Flash 7 with AS 2.0 as the settings, the email was able to send correctly.

Issue Resolved. :iconthumbright:

Thanks for your time.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post March 9th, 2010, 8:45 am

Post Information

  • Total Posts in this topic: 59 posts
  • Users browsing this forum: No registered users and 26 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.