Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: RE: FLASH: sending variables to a CGI script
From: Bob Shuster
Date: Thu, 27 Jan 2000 16:13:35 GMT

Thanks - this is a good tip. Now I just need to find a similar
application for Macintosh. Anyone? - Bob Shuster

>Here's a tip thats useful for debugging the sending/receiving of variables
>from flash to a CGI or somesuch:
>
> Get a network monitoring tool
> -----------------------------
>
>
>It much easier to write this stuff if you can actually see whats being
>passed back and forth between the server and the flash applet.
>
>
>SpyNet is the one I use, and it can be had from
>http://members.xoom.com/Laurentiu2/index.htm
>
>
> > -----Original Message-----
> > From: owneratchinwag [dot] com [owneratchinwag [dot] com]On">mailto:owneratchinwag [dot] com]On Behalf Of Bob Shuster
> > Sent: Wednesday, January 26, 2000 7:13 PM
> > To: flasheratchinwag [dot] com
> > Subject: FLASH: sending variables to a CGI script
> >
> >
> > I've racked my brain and I just can't seem to get this working. I've
> > got most of the Flash 4 books available (and have gone through them.)
> > I've hit the official Flash documentation as well as Macr.'s Flash
> > site. I've hit most of the other sites (FlashBible, etc.)
> >
> > That being said - I'm trying to get a simple form working, and I
> > think I'm simply doing something basically wrong. My server is set
> > up for CGI - I even have an HTML form setup and working to duplicate
> > what I want to do in Flash.
> >
> > Here's the problem. I'm using the following scripting to send data
> > (well, that's what I'm *trying* to do) to a Perl script on my server.
> > The form seems to work - if I don't enter data in one of the required
> > fields, it goes to the error routine. But when I press "Submit" (and
> > have data entered in the correct places) - the movie goes to the
> > "Confirm" section, but my browser just sits there saying "contacting
> > host". No email is ever sent. I think I'm missing something here.
> >
> > Can anyone point me in the right direction? This has got to be a
> > pretty common thing in Flash - a feedback form - what am I doing
> > wrong?!?
> >
> > <<<<<<<<<<<<<script>>>>>>>>>>>>>>
> > On (Release)
> > Comment: Make sure the user filled in all the required fields.
> > If (name ne "" and email ne "" and comments ne "")
> > Comment: Check to make sure the email address includes and @.
> > Set Variable: "i" = "0"
> > Set Variable: "validmail" = 0
> > Loop While (i <= Length(email))
> > If (Substring (email, i, 1) eq "@")
> > Set Variable: "validmail" = 1
> > End If
> > Set Variable: "i" = i + 1
> > End Loop
> > Comment: If there's no @ in the email go to the error page.
> > If (validmail = 0)
> > Go to and Stop ("error")
> > Else
> > Load Variables ("/cgi-bin/formmail.pl", 0, vars=POST)
> > Comment: Go to the confirmation frame.
> > Go to and Stop ("confirm")
> > End If
> > Else
> > Comment: if the user left required fields blank, show
> > them an error message.
> > Go to and Stop ("error")
> > End If
> > End On
> > <<<<<<<end script>>>>>>>>
> >
> > Elsewhere at the same level I have set some hidden variables (i.e.
> > recipient, sort order, and subject) that should also be sent to the
> > script. I've spent way too much time on this already! Thanks -
> > Bob Shuster



[ Hot Apple Spider Design - graphic & website design/consulting ]
[ email: BobatHotAppleSpider [dot] com phone: 215-402-0751 ]
[ All work proudly done on Macintosh computers! ]
[ website: http://www.HotAppleSpider.com/ ]

flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The Worlds Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California

-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  RE: FLASH: sending variables to a CGI sc, #LCARS
  RE: FLASH: sending variables to a CGI sc, unique
  RE: FLASH: sending variables to a CGI sc, Damian Morton

Replies
  RE: FLASH: sending variables to a CGI sc, Damian Morton

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]