Flash input fields not passing POST variables to PERL script

  • diving4NAUI
  • Born
  • Born
  • User avatar
  • Posts: 2
  • Loc: Seattle, WA

Post 3+ Months Ago

I'm not a programer by any means. I'm a Master Diver with a new hobby. This flash project is a whole new animal for me.
Html, PHP, and mySQL are easy for me... sort of... not really.

I have two files:
1. dive.pl
2. dive.cfg
These two file are written in perl. This script takes the "form input text field" information and passes to the mail domain server, then I get the email. something like that.

Okay, in flash i created some "input text" fields:
    Name
    Email
    Subject
    Feedback
then I created a button bar and coded it with actionscript:
Code: [ Select ]
on (release) {
  getURL ('dive.pl',POST);
  }
  1. on (release) {
  2.   getURL ('dive.pl',POST);
  3.   }


In the dive.cfg file, there is a line where I can add ANY input type from the form.

Code: [ Select ]
// add input names here 
SENDFIELDS = Name, Email, Subject, Feedback
  1. // add input names here 
  2. SENDFIELDS = Name, Email, Subject, Feedback


In HTML it works great, but in flash not so much.
In my incoming email from the domain, it should display all of my inputs but it's not, there all blank and its showing the following only:
Name:
Email:
Subject:
Feedback:

I know this is a wordy post, but I would love to get some help with this please.
Thank you in advance.

dive4NAUI
  • diving4NAUI
  • Born
  • Born
  • User avatar
  • Posts: 2
  • Loc: Seattle, WA

Post 3+ Months Ago

I found the code if anyone is interested.
Quote:
Actionscrip Flash MX

Code: [ Select ]
------SEND BUTTON----------
on (release) {
     if (name eq "" or subject eq "" or message eq "" or email eq "") {
        stop();
     } else {
     loadVariablesNum("dive.pl", 0, "POST");
     gotoAndStop(2);
   }
}

-------CLEAR BUTTON-------------


on (release) {
  name = "";
  subject="";
  message="";
  email="";
}
  1. ------SEND BUTTON----------
  2. on (release) {
  3.      if (name eq "" or subject eq "" or message eq "" or email eq "") {
  4.         stop();
  5.      } else {
  6.      loadVariablesNum("dive.pl", 0, "POST");
  7.      gotoAndStop(2);
  8.    }
  9. }
  10. -------CLEAR BUTTON-------------
  11. on (release) {
  12.   name = "";
  13.   subject="";
  14.   message="";
  15.   email="";
  16. }


you have to name the input text in the Var: box like you have to name each HTML input type:
Code: [ Select ]
<input type="text" name="textfield">

each input text you create you have to name it.
This is the code I have been looking for.
I said I would figure it out. and i'm giving it to you.

smiles :D
  • Zealous
  • Guru
  • Guru
  • User avatar
  • Posts: 1244
  • Loc: Sydney

Post 3+ Months Ago

Great work, should come in handy for someone else.

post more problems up, seam to be good at working them out. :)

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 5 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.