Welcome, Guest
  • Author Topic: cgi form in flash mx  (Read 572 times)

    NANANA

    • Server what's that
    • *
    • Posts: 32
      • View Profile
      • Email
    cgi form in flash mx
    « on: 06/12/03, 06:14 »
    hello ...


    i am trying to let work a cgiform in flash mx (allready I have a htmlversion that works perfectly fine) but in flash mx i get an error page instead.

    problem is I think: the hidden fields ...

    the hiden fields that I have to include are "to" and "next"

    ==============>

    first: input field to ="someemail@mailserver.com" AND
    second: input field next="myserver.com.ok_messagesend.htm"

    <================

    here you can see the function I would like to call when hitting the send button-this function however includes the form elements that are not hidden; how do I include the hidden formelements:

    _global.sendForm = function(formObj){
     lv = new LoadVars();
     lv.name = formObj.name.text;  
     lv.email = formObj.email.text;
     lv.hobbies = formObj.hobbies.getValue();
     lv.age = formObj.ageRange.getValue();
     lv.gender = formObj.gender.getValue();
     lv.mailingList = formObj.mailingList.getValue();
     lv.send("http://users.skynet.be/cgi-bin/form.cgi","","POST");


    so how does the function will work properly
     

    Musicman

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 2685
      • View Profile
      • Email
    Re:cgi form in flash mx
    « Reply #1 on: 06/12/03, 11:50 »
    Hi,

    add thesm to the lv setup codes:

    lv.to = "you@mailer.com";
    lv.next = "...."

    Musicman

    NANANA

    • Server what's that
    • *
    • Posts: 32
      • View Profile
      • Email
    Re:cgi form in flash mx
    « Reply #2 on: 06/12/03, 13:35 »
    Hi ,

    Here is NANANA.

    thanx for the quick reply but the solution you suggested I tried allready.
    doesn''t work either

    Musicman

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 2685
      • View Profile
      • Email
    Re:cgi form in flash mx
    « Reply #3 on: 06/13/03, 00:45 »
    Hi,

    can you
    a) - try  your form with a different browser (netscrape)
    b) - if it does not send there as well, post url of your swf movie for some online testing

    Musicman