LoadVariablesNum on button to access cgi script mail form

Greetings: I've used this method many times in the past to create an email form in a movie clip with a "send button" that accesses a perl, cgi script to email text input fields. It worked fine in past versions of Flash, but now I'm using Flash CS3 (v9.0, AS 2.0). I've tried 3 different cgi scripts I found online for this purpose and am sure the configurations for sendmail server & perl bins, etc are correct. All of the other "if" and "else" statements on the button work fine. But I can see a Safari (browser) error message saying POST was not used, but clearly it is. I'm trying to trouble shoot whether the problem is from the flash button or the cgi script.
Has something changed in Flash CS3 from previous versions, where I'm certain it has worked before???
Here is my button code:
on (release) {
//Make sure the user filled in all the required fields.
if (name1 ne "" and name2 ne "" and subject ne "" and email ne "") {
//Check to make sure the email address includes and @.
i = "0";
validmail = 0;
while (Number(i)<=Number(length(email))) {
if (substring(email, i, 1) eq "@") {
validmail = 1;
i = Number(i)+1;
//If there's no @ in the email go to the error page.
if (Number(validmail) == 0) {
gotoAndStop("error");
} else {
//The line below assumes the script is in the same directory as the HTML page.
loadVariablesNum("http://www.companyname.com/cgi-bin/FormMail.pl", 0, "POST");
//Go to the confirmation frame.
gotoAndStop("thankyou");
} else {
//if the user left required fields blank, show them an error message.
gotoAndStop("error");
Here is the error message I can access on Safari>window>activity:
"The HTML form fails to specify the POST method, so it would not be correct for this script to take any action in response to your request.
If you are attempting to configure this form to run with FormMail, you need to set the request method to POST in the opening form tag, like this: <form action="/cgi-bin/FormMail.pl" method="post">
Why isn't the command from the button in the Flash swf file, being recognized by the html page?
Thanks in advance for any help.
Janis

in version 6, case didn't count. after version 6, it counts.
so, gotoandPlay(3), used to work but, not now.  you need to use gotoAndPlay(3).
also, undefined numeric variables were assigned a default value of 0 with flash 6 and prior.  not now, they're undefined.  so, watch for code like
while(var1<1){
do something
var1++;
where var1 is never initialized.
about policy files:  check the security class'es loadPolicyFile() method.

Similar Messages

  • CGI script for forms

    Hi,
    I have to add form elements to my help topics for getting
    feedback from users. This requires a CGI script to recognizes the
    form elements. While I understand that this is primarily the job of
    a developer, can anyone help me with a reusable script so that I
    can work on my own.
    Thanks much!

    Try
    here.. I think the
    "FormMail" script is the one you need.

  • Running CGI scripts

    Hi,
    I am running WebLogic Server 5.1. I get the message - "cgi-bin: Failed
    to execute CGI script:reports" when I try to execute cgi-bin scripts
    (*.cgi).
    I have setup the properties file as follows -
    weblogic.httpd.register.cgi-bin=weblogic.servlet.CGIServlet
    weblogic.httpd.initArgs.cgi-bin=\
    cgiDir=/export/home/webbi/NetTracker/cgi-bin
    and am trying to access cgi script as
    http://<host:port>/cgi-bin/reports/ntcgi.cgi
    Appreciate your help.
    Raja

    Marta,
    Thanks for your reply. I followed your advice, it still complains
    cgi-bin: Failed to exec CGI script:ntcgi.cgi
    Any ideas?
    Raja
    Marta Ramos wrote:
    Hi,
    I had the same problem. Try this:
    weblogic.httpd.initArgs.cgi-bin=\
    cgiDir=/export/home/webbi/NetTracker/cgi-bin/reports
    And access to the cgi script as
    http://<host:port>/cgi-bin/ntcgi.cgi
    Do not ask me why, but WebLogic do not admit directories after
    the cgi-bin directory at the URL. That is why he is trying to
    execute the cgi script "reports".
    Hope this help you.
    Marta.
    Raja Ramanathan <[email protected]> wrote:
    Hi,
    I am running WebLogic Server 5.1. I get the message - "cgi-bin: Failed
    to execute CGI script:reports" when I try to execute cgi-bin scripts
    (*.cgi).
    I have setup the properties file as follows -
    weblogic.httpd.register.cgi-bin=weblogic.servlet.CGIServlet
    weblogic.httpd.initArgs.cgi-bin=\
    cgiDir=/export/home/webbi/NetTracker/cgi-bin
    and am trying to access cgi script as
    http://<host:port>/cgi-bin/reports/ntcgi.cgi
    Appreciate your help.
    Raja

  • Try to mix plain text with HTML text in mail forms

    Hi,
    I'm working with CRM 2005, and I want to build a mail form with Multi-Mime text type, but with a "html text" block and a "plain text" block in first page. I can do it but when I access to my mail form via PCUI a error occurs telling me that the mail form is defined improperly.
    Thanks a lot,
    Nuno Moreira

    Hi Nuno,
    if the mail is sent correctly and it is only a display problem in PC-UI I would suggest that you open a OSS message to ask SAP to solve this problem.
    Regards
    Gregor

  • New to Flash, create a flash form which is emailed using CGI script when submit button is pressed

    I'm trying to build a form in flash that is emailed using CGI
    script. I'm just lost and confused and I just can't seem to figure
    this out.
    This is the CGI coding for HTML and I just need to convert it
    to use in CS3:
    <form action="
    http://www.hostmonster.com/monstermail"
    enctype="multipart/form-data" method="POST">
    Name: <input type="text" name="Name"><br>
    Email: <input type="text" name="mailfrom"><br>
    Phone: <input type="text" name="Phone"><br>
    Service: <input type="text" name="Service"><br>
    <input type="hidden" name="sendtoemail"
    value="[email protected]"><br>
    <input type="submit" value="Send Email">
    </form>
    This is a link to what I'm working on:
    http://www.alternativesolutionsforyou.com/contact.htm

    OK, sorry....no more errors when I test the movie but when I
    test it live....nothing happens???? Here's the link again:
    http://www.alternativesolutionsforyou.com/contact.htm
    Code as it is:
    lv=new LoadVars();
    lv.Name=name.text;
    lv.mailfrom=email.text;
    lv.Phone=phone.text;
    lv.Service=service.text;
    lv.sendtoemail="[email protected]"
    yourSubmitButton.onPress=function(){
    lv.sendAndLoad("
    http://www.hostmonster.com/monstermail",lv,"POST");
    lv.onData=function(){
    // data successfully sent
    // this will execute if your cgi script returns something
    after executing
    I haven't adjusted what happens after you his the submit
    button yet.....just trying to get the email working.

  • Formmail action & cgi scripts

    I have 2 forms I built in CS3 that have to be processed in a
    secure manner. I followed the advice I found online and from my
    webhost (network solutions) and downloaded Visual Form Mail Pro. I
    uploaded the cgi script files to the cgi-bin on the server and
    setup the permissions. When I click the submit button on the form,
    I get an Internal Server Error message. I think the problem is the
    action field on the properties panel. I cannot find anything that
    will tell me what the action should be. I cannot use the mailto
    action, the forms are for secure medical information to be
    forwarded to a dr's office. One other issue with how the form needs
    to be processed to email, is my client wants the email sent to his
    gmail account, how do I configure that?
    the url for the form I tried to configure is
    https://www.stluciegi.com/contact/patientcontact.html

    ou can use PHP on this hosting?
    I'd suggest using the phpformmail script.
    here's my stock cut 'n paste on what to set to what, and why
    1)go to
    http://http://developerkarma.com/projects
    -->phpformmail
    download it.
    extract the ZIP file.
    More detailed instructions are in the docs folder. These
    shortcut
    instructions are for version 1.07 of the phpformmail script.
    2) open formmail.php in dreamweaver
    Make the following changes (in code view, turn line numbers
    on)
    2a)
    line 4,
    define('CHECK_REFERER', true);
    change to:
    define('CHECK_REFERER', false);
    reason: too many people use a firewall or Norton security to
    restrict this.
    2b)
    Line 43
    $referers = array('www.example.com', 'example.com');
    change to the domain name of your web site.
    reason: this probably isn't needed since we just turned the
    referrer
    checking off. but change it anyway.
    2c)  *this is to hard-code the recipient address into
    the php
    file, where it is totally invisible *
    Line 46
    $recipient_array = array();
    change to:
    $recipient_array = array('me' =>
    '[email protected]');
    **of course, replace [email protected]  with
    the email address
    you want to receive the form data. Also note the single quote
    marks.
    reason: this sets the email address the form results will be
    sent to.
    You can also make a list of possible recipient alias values-
    see the readme
    in the docs folder.
    2d) give the script a default "From" address to use.
    Go to line 41
    Change:
    define('FROM', null);
    to:
    define('FROM', 'Example Name <[email protected]>');
    substituting your name and email address.
    3) now do a File-->Save As and save this file to within
    this Local Site
    folder. save it as anythingyouwant.php
    4) in dw's File Panel, find anythingyouwant.php and upload it
    to the remote
    site.
    5) Now open your form html file in dreamweaver,
    5a)click the mouse into the form area, and select the
    <form> tag on the
    lower left margin of the design window.
    In the Property Inspector, it should now show the properties
    of the <form>
    tag. In the Property Inspector, to the right of the ACTION
    line, click the
    folder icon and browse to and select the anythingyouwant.php
    file
    you've saved to within this site.
    5b) now click within the form area and go to dw
    menu-->Insert-->Form
    Objects-->Hidden Field
    This inserts a hidden form field.
    In the property inspector, change the NAME/ID of this field
    to: recipient
    And the VALUE of this field to: me
    the code should look like:
    <input name="recipient" type="hidden" id="recipient"
    value="me">
    This tells the script to use the "me" recipient_alias value
    as the email
    address to send the form to.
    5c: Do you have a form field to collect the user's email
    address?
    If yes, if this field is named exactly "email" then the
    script will use the
    user's email as the reply to in the outgoing email
    6) Save and upload the form page.
    Try the form from the website.
    Optional:
    1-make a new page for a thank you for submitting message.
    In the form, insert another hidden field.
    Name: redirect
    Value:  the full absolute
    http:// address to the new thank you page.
    If you don't set a redirect value- the form script will build
    a "thank you,
    here is what you submitted" page. If you want to use that
    dynamic page-
    upload the .css file that it uses.
    2- If you have a field in the form to collect the visitor's
    email address,
    IF you name this field  in the form exactly  
     email   then the visitor's
    email address will be the Reply To address in the outgoing
    email.
    There are 30 or so other optional form fields to control the
    form- see the
    readme in the docs folder. One of those optional control
    fields is
    verification.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • What CGI scripts are recommended for form2email?

    My site is on register.com. I'm trying to use a script from form2email.net which was recommended by that host. The Dreamweaver code for the form looks fine to me. The script (written in Perl) executes, goes to a thank_you page, sends an email with correct from, to and subject. But the body of the email has no data except for the value of the submit button and info the script adds to any email it sends. I modified the script for my app using Notepad ++, changing only user-specified fields that had to be changed. I'd appreciate thoughts on what might be wrong, or a recommendation for a form2email script that works well with Dreamweaver.
    register.com says they can't help with "coding problems," though they recommended the script, and I couldn't find help for my problem at the developer's site.

    Why do you have 2 form tags on your HTML file?
    The reason why you're getting just 'Submit: [Send]' in your e-mail is because you're closing your actual form before your 'submit' button and starting another form just for the 'submit' button.
    Your formmail script interprets the only value is your '[send]' and it just parses that as an e-mail to you.
    Change your code this way:
       <form action="http://www.advocatesforclassicalmusic.org/cgi-bin/docentreq.pl" method="post" enctype="multipart/form-data" name="DocentRequest" id="DocentRequest">
          <p><strong>Date
            <input name="Date" type="text" id="Date" size="25" maxlength="25" />
          </strong></p>
          <p><strong>School
              <input name="School" type="text" id="School" value="" size="90" maxlength="90" />
          </strong></p>
          <p><strong>Address
            <input name="Address" type="text" id="Address" size="90" maxlength="90" />
          </strong></p>
          <p><strong>Area
            <input name="Area" type="text" id="Area" size="30" maxlength="30" />
          </strong></p>
          <p><strong>Teacher or Contact
            <input name="Teacher or Contact" type="text" id="Teacher or Contact" size="50" maxlength="50" />
          </strong></p>
          <p><strong> School Phone
            <input name="School Phone" type="text" id="School Phone" size="20" maxlength="20" />
          </strong></p>
          <p><strong>Home Phone
            <input name="Home Phone" type="text" id="Home Phone" size="20" maxlength="20" />
          </strong></p>
          <p><strong>Cell Phone
            <input name="Cell Phone" type="text" id="Cell Phone" size="20" maxlength="20" />
          </strong></p>
          <p><strong>Email(s)
            <input name="Email(s)" type="text" id="Email(s)" size="90" maxlength="90" />
          </strong></p>
          <p><strong>Number of Classes
            <input name="Number of Classes" type="text" id="Number of Classes" size="10" maxlength="10" />
          Students per Class
          <input name="Students per Class" type="text" id="Students per Class" size="10" maxlength="10" />
          </strong></p>
          <p><strong>Grade Level(s)
            <input name="Grade Level(s)" type="text" id="Grade Level(s)" size="25" maxlength="25" />
          </strong></p>
          <p><strong>Concert Name
            <input name="Concert Name" type="text" id="Concert Name" size="50" maxlength="50" />
          </strong></p>
          <p><strong>Concert Date
            <input name="Concert Date" type="text" id="Concert Date" size="25" maxlength="25" />
          </strong></p>
          <p><strong>Other Information
              <textarea name="Other Information" cols="70" rows="4" id="Other Information"></textarea>
          </strong></p>
        </form>
        <form id="Docent Request" name="Docent Request" method="post" action="http://advocatesforclassicalmusic.org/cgi-bin/docentreq.pl">
          <input type="submit" name="Submit" id="Submit" value=" [ Send ] " />
        </form>
    Remove the lines that I've striked out from your HTML file and that should fix the issue.

  • Firefox will not automatically load Tiscali and after I have loaded using START it will not access my e-mails on tiscali

    Until I loaded the latest version of Firefox I accessed Tiscali without difficulty usong the Icon. Now it will not access the internet at all and I have to use Windows to access the internet. Tiscali then loads but i cannot access my e-mails and I get a message telling me I have 'undefined e-mails'. Windows Explorer works perfectly

    Hi again,
    Helps if I give the correct link ! <br/>The press shift button appears to still work, but the option to start in safe mode from the programs listing of a standard install I do not think exists anymore.
    Safe mode will start from a command line, (or a shortcut) and in some circumstances you may need to enter the full path name on a command or shortcut detailed instructions are at http://kb.mozillazine.org/Safe_mode
    Remember (at least at this stage) do not make changes when you get the options list, just click on the continue button.
    If you think that RealPlayer is causing the problem you could uninstall that for now.
    Firefox recent versions are 3.6 4.0 (and 5.0 in beta). There is some debate as to whether creating new profiles or re-installing Firefox is the simplest method of troubleshooting and solving some of these problems, personally I use multiple profiles and multiple versions of Firefox, and tend to forget the required procedures are less than straightforward. For now at least try [[safe mode]] again.
    * see also Instructions for [[installing a previous version of firefox]]

  • I recived a worning on my IPad but i can't have access on it or turn it off. It 's me like : "iCloud Backup is unable to access your e-mail account. Review your account informations." I can't have access on it please tell me what i need to do..

    I recived a worning on my IPad but i can't have access on it or turn it off. It 's me like : "iCloud Backup is unable to access your e-mail account. Review your account informations." I can't have access on it please tell me what i need to do..

    Hi there
    I had the same problem and I found this answer to a similar question to ours, so I copied and pasted it for you
    Reset the device by holding down the home button and the sleep/wake button at the same time for approximately 10 seconds.  After it resets the message will be gone and you can go to settings > icloud and put in your password.
    That seems to be a bug with the password alert where it won't respond correctly sometimes.
    Hope this helps

  • This.submitForm() -- problem with my cgi script

    Thanks to George Johnson for an earlier answer to a related issue with this.submitForm.
    I am trying to use this.submitForm as per Example 1 on p. 348 of "JavaScript for Acrobat API Reference" document.
    To avoid any restrictions with my web hosting service, I am using the following JavaScript (on my form's Submit button) on my local XAMPP server:
    this.submitForm ("./cgi-bin/myscript.cgi");
    My question involves what should be in the myscript.cgi file before I submit to it.  If there is no file to start with, the
    submission will result in a "File not found" error.  So I guess I need the myscript.cgi file in the cgi-bin folder to begin with.
    When I put in a blank myscript.cgi file in that folder (hoping the submission will overwrite it), I can the following message:
    Server error!  The server encountered an internal error and was unable to complete your request. Either the server is overloaded or
    there was an error in a CGI script.
    Can you tell me what is happening?  What should my original myscript.cgi have in it, if anything?

    Thanks for responding.
    I want CGI script to processes the incoming data from the PDF form submission. I want that process to save the FDF to a file on the server. 
    I also understand that the script has to return a response to the client.  I would like to send some kind of confirmation to the client.
    I realize that writing scripts isn't rocket science, but it would seem that Adobe would have some examples of scripts that deal specifically with fdf data.  Could you point me to any examples?

  • LMS 3.2 Apache 403 Error on CGI Scripts

    I've been chasing my tail for a couple of days now, and see no other option than to ask here.  It's probably something reall
    y dumb that I'm just not seeing.
    On a Windows 2008 server with SP1 LMS 3.2 is running fine (as long as no one uses stupid scripts ;o)) on a good day, but whenever I try to access any of the cgi scripts installed under Program Files/CSCOpx/cgi-bin it get the dreaded "You don't have permission to access /cgi-bin/dbadmin/pdbadmin/nph-dbreader.pl on this server".  The httpd.conf section for the CGI handling is as follows:
    ScriptAlias /cgi-bin/ "D:/PROGRA~2/CSCOpx/cgi-bin/"
    <Directory "D:/PROGRA~2/CSCOpx/cgi-bin">
    AllowOverride None
    Options +ExecCGI
    AddHandler cgi-script .pl
    #ScriptInterpreterSource Registry-Strict
    ScriptInterpreterSource Script
    </Directory>
    LoadModule perl_module modules/mod_perl.so
    What I would like to know is what have I missed..?  You can see my first attempt by replacing the ScriptInterpreterSource from Registry-Script to the default, Script, to no avail...
    Also, if I make any modifications to the httpd.conf file I cannot just restart the Apache daemon, I have to stop and start the daemon manager, otherwise no one can access the web login page: is that normal..?  As in the following:
    The Apache daemon is restarted:
    [Fri Dec 11 15:14:38 2009] [notice] Child 6088: Child process is running
    [Fri Dec 11 15:14:38 2009] [notice] Child 6088: Acquired the start mutex.
    [Fri Dec 11 15:14:38 2009] [notice] Child 6088: Starting 500 worker threads.
    [Fri Dec 11 15:14:38 2009] [notice] Child 6088: Starting thread to listen on port 1741.
    [Fri Dec 11 15:14:38 2009] [notice] Child 6088: Starting thread to listen on port 443.
    Lots of the following messages appear in the error.log file:
    [Fri Dec 11 15:14:38 2009] [error] [client 10.185.64.101] client denied by server configuration: com.cisco.nm.cmf.servlet.LwmsMainServlet
    [Fri Dec 11 15:14:38 2009] [error] [client 10.185.64.101] client denied by server configuration: D:/Program Files/CSCOpx/cgi-bin/error/403.pl
    Any help would be most appreciated...
    Regards,
    Sean

    I have no expirience with the W2008 OS yet.
    I get the impression it does things differently.
    If you know the casuser password, I asume you can try to log onto the server and try an run the perl script in a dos box.
    Maybe it will provide a clue.
    if you don't know the casuser password you can set it using CSCOpx\bin\resetpasswd.exe.
    Cheers,
    Michel

  • Servlet engine invoked FROM CGI script?

    Yes this is a backwards request, but I need a simple servlet engine that can be invoked through a CGI script. I perfectly realize the problems associated with this like session management, benefits in threading, etc not to mention the overhead of JVM startup on each request...
    Anything with which anyone's familiar? Searching returns (of course) how to invoke CGI from Servlet containers which is obviously not what I need.
    Thanks!

    Hi Michael,
    I am running 7.0 on Win NT while its the same case its displaying the whole content
    as it is setted the weblogic.servlet.CGIServlet in the web.xml file and providing
    the compiler for perl also .
    Looking for a quick reply
    Thanks
    Shivani
    Michael Young <[email protected]> wrote:
    Hi.
    What platform/OS version are you running WLS on?
    Thanks,
    Michael
    Suren Jain wrote:
    Hi,
    We are having problems invoking cgi scripts from the browser.
    When we try to access it, it is not executed, instead the script is displayed
    in the browser.
    We are using weblogic 5.1 and sp9.
    In the properties file we have specified
    weblogic.httpd.register.cgi-bin=weblogic.servlet.CGIServlet
    weblogic.httpd.initArgs.cgi-bin=\
    cgiDir=/opt/equitydev/geo/cgi-bin,\
    *.pl=/usr/local/bin/perl5,\
    *.sh=/bin/ksh
    Appreciate your help.
    Thanks
    Suren.--
    Michael Young
    Developer Relations Engineer
    BEA Support

  • Multiple form recipients from CGI script

    Is there any way to code a cgi script to deliver the form to
    more than one recipient. I've tried a couple of things and can't
    seem to make anything work.

    So the mail server you are sending through does address verification.
    Maybe you should explain to them that it is a pointless exercise, as many mail servers on the internet will not allow verification. Thus, you will reject legit mail.
    I don't know if your CGI script can be modified as I have never seen it and am no psychic
    You can create a www user and set the shell to none. The user must be allowed to login, just don't give it a shell.
    Alternatively, check if your script will allow for authenticated SMTP and ask your sysadmin to allow you through when authenticated.

  • Can my iMac share Internet with access for Apple Mail client?

    I'm sharing my internet connection from my iMac over the Airport card to my MacBook. The iMac is connected via ethernet to my cable modem. Everything works great, except my MacBook cannot access my .mac mail from Apple Mail (Safari web access works great). Are there additional services I need to open on my iMac for this to work?
    Thanks for any assistance!

    In the Sharing pane of System Preferences, open ports 25 and 110 for outbound and inbound mail access respectively. If it still doesn't work, open port 443 as well. To open a port, click on the Firewall tab, followed by the New button. Choose Other from the drop-down menu at the top, enter the numbers 25 and 110 in the TCP port text field, and click OK.
    (12640)

  • First cgi script

    hello, I am trying to get my first cgi script to run on my server
    I created the file and named it first.pl
    set ownership of read and write to everyone
    duplicated it and named the duplication first.cgi
    [i wasn't sure which i should use]
    contents of the file are:
    #!/usr/bin/perl
    print "Content-type: text/html\n\n";
    print "Hello, World.";
    I placed these files in the
    /library/webserver/CGI-Executables folder of the server
    in safari i enter
    http://127.0.0.1/cgi-bin/first.pl (and.cgi)
    I get a Forbidden message
    You dont have permission to access /cgi-bin/first.cgi on this server.
    Apache/1.3.33 Server at 127.1.1.1 Port 16080
    I would really appreciate someone pointing me in the right direction - thanks

    >set ownership of read and write to everyone
    That won't help. CGIs need to be executable, not just readable.
    Change the file so that it's executable by everyone and you should be set. The best permissions for a CGI are 755 (rwxr-xr-x) so that anyone can execute it, but only the owner can write it:
    <pre class=command>chmod 755 /Library/WebServer/CGI-Executables/first.cgi</pre>

Maybe you are looking for