Welcome to TalkGraphics.com
Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11
    Join Date
    Dec 2000
    Location
    andalucía · españa and lower saxony · germany
    Posts
    2,125

    Default

    Turan,

    <BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR> data_required <HR></BLOCKQUOTE>

    that's identical to the following I'm using:

    INPUT TYPE="hidden" name="param_required" value="briefing,firstname,lastname,phone,e-mail"

    Instead of 'data_required' I'm sending 'param_required'.

    The point is as follows: called from a HTML page, the cgi checks and validates the data. If one of the specified data fields in your

    < form > input type=hidden name=data_required

    does not match the condition, the cgi will pull up an error page in your browser. However, if a data string is missed, it can't pull a page from your FLASH, you are in trouble.

    Solution: either comment out this line or delete it. You should already check the data fields in your flash mc:

    On (Press)
    If (email eq "")
    Begin Tell Target ("mailer interactive01")
    Go to and Stop (4)
    End Tell Target
    ---
    this part checks the field 'email' and if this is empty (expression "") it tells a subsequent mc to play a warning. However, if the field is not empty, the mc will proceed as follows:
    ---

    Else
    Set Variable: "param_recipient" = "your_name@your_domain.com"
    Set Variable: "param_subject" = "message from turan"
    Set Variable: "param_order" = "name,email,message"
    Set Variable: "param_database" = "flashportfolio.txt"
    Get URL ("http://.../cgi-bin/forms.cgi", window="_blank", vars=POST)
    Play
    End If
    End On

    You can't specify a 'data_required' in flash, becauxe the cgi can not interact with flash, only with html pages (unless you insert some javascript).

    Note that your cgi might not feature all these parameters I've posted above.

    Just checked your site:

    input type="HIDDEN" name="required" value="submit_by,message"

    this line won't work with flash...

    I think we have nailed your problem.

    jens

    jens g.r. benthien
    designer
    http://www.sacalobra.de

    ----------//--
    If you don't know how to dream you'll never be a designer.
    ----------//--

    [This message was edited by jens g.r. benthien on April 09, 2003 at 09:38.]
    --------------------//--
    We can't solve problems by using the same kind of thinking we used when we created them.
    --------------------//--
    IP

  2. #12
    Join Date
    Apr 2001
    Location
    Northern Ireland
    Posts
    788

    Default

    I get this (attached pic) I I remove the checks

    At the end of the day, data_required is just a variable like submit_by.

    While data_required is hidden and set by me in the FLASH file and submit_by is an input text box set by the user when the FLASH is run both are just bits of data sent to the cgi script (or should I say SHOULD be sent).

    So as suspected, if data_required variable is not being sent then submit_by will not be sent either.

    Turan
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	result.gif 
Views:	951 
Size:	4.0 KB 
ID:	12073  
    IP

  3. #13
    Join Date
    Apr 2001
    Location
    Northern Ireland
    Posts
    788

    Default

    I give up - I will blame it on the hoster

    I just checked that the variables were being set by creating dynamic text boxes in the MC.

    So I know that inside flash the data variables ARE being set. I've used both getURL and loadVars.send and nothing seems to work.

    But many many thanks for trying to help. I think I will tinker with it over time - but I must have spent 3+ complete days just chaning things - uploading trying and back to changing with no joy.

    Turan
    IP

  4. #14
    Join Date
    Aug 2000
    Location
    Toronto, Ontario, Canada
    Posts
    432

    Default

    Question: are you using Flash MX?

    Are you using the LoadVars object?

    For the getURL thing, try changing POST to GET, and see if the vars are actually being passed. If they're not being sent by GET (you should see them in your query string in the browser address bar), then you know the problem is with the Flash movie. If the variables are being sent by GET then it's 99% sure they're being sent by POST as well, and the problem lies in your CGI script. Can you dump what you're receiving when the script is invoked? For example, if you're using PHP, you'd just do a print_r($_POST); to see what's being sent...

    Let us know...


    hth,
    Deep (just a guy)
    <font face="arial" size="2">
    Pradeep Kumar Nair, B.Math
    Content Manager
    9 Story Entertainment
    http://www.9story.com
    ICQ: 39102360
    </font>
    hth,
    Deep (just a guy)
    --
    Pradeep Kumar Nair, B.Math
    CTO
    9 Story Entertainment
    http://www.9story.com
    IP

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •