We're aware that some users are experiencing technical issues which the team are working to resolve. See the Community Noticeboard for more info. Thank you for your patience.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

FlashActionscript 3.0 help please - Using GoDaddy's email form gdform.php

Options
tincat
tincat Posts: 935 Forumite
Hi all,

I'm setting up a simple website with a contact form in flash cs5 with actionscript 3. The site is hosted by godaddy, and so the relevant bit of code in my actionscript is as follows (the rest of the as concerns the data and if and else statements):
URLRequest("http://www.mysite.com/gdform.php");
mailAddress.data = allVars;
mailAddress.method = URLRequestMethod.POST;
sendToURL(mailAddress);
The form works, as there are no compiler errors, and the 'thank you!' message appears, but in the output box it says
My main question is the gdform.php. On godaddy's control panel, I have set the email that I want webforms to direct to. It doesn't give any other instructions.

Do I have to actually make a gdform.php page?

Sorry if this is a confusing question but hopefully someone will know.

thanks

Comments

  • bingo_bango
    bingo_bango Posts: 2,594 Forumite
    The short answer is yes.

    In the script, you are sending a request to a page which does not exist. If you haven't compiled gdform.php, how do you expect the script to find it?

    The whole point of the URLRequest function is to return a page for the user to see that the message has been sent. I use a php page on one of my sites which is substantially the same format as the rest of the site, but returns the message details so that the user can see what they have just sent. That is what you are trying to do here.

    It appears that the script is working correctly (I assume you are getting test messages?) and if that is the case then you could not bother setting up a separate page and just use the /index.html URL for this function. That way a user gets returned to the front page of your site, but will not get any confirmation that the message was successfully sent. It's up to you what you want them to see when they hit submit.
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 351K Banking & Borrowing
  • 253.1K Reduce Debt & Boost Income
  • 453.6K Spending & Discounts
  • 244K Work, Benefits & Business
  • 598.8K Mortgages, Homes & Bills
  • 176.9K Life & Family
  • 257.3K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.1K Discuss & Feedback
  • 37.6K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.