-
Script
Why does the sourch from the cgi script comes on my screen.
Its a chat room
This is what it does
On the login screen this is the code (button:
on (release, keyPress "<Enter>") {
if (Number(length(name))<1) {
nameselection = "Please enter a name first";
} else {
todo = "namesearch";
loadVariables ("http://dvsnt03/cgi-bin/chatscript.cgi", "", "POST");
gotoAndPlay ("check name");
}
}
And there is a frame that checks the name:
if (eof eq "false") {
gotoAndPlay ("check name");
} else {
if (namefree eq "true") {
gotoAndPlay ("read");
} else if (namefree eq "false") {
nameselection = "Sorry, that name is already in use.";
gotoAndStop ("start");
}
}
This is the code on the button (In the room it self):
on (release, keyPress "<Enter>") {
todo = "post";
loadVariables ("http://dvsnt03/cgi-bin/chatscript.cgi", "", "GET");
text = "";
eot = "false";
gotoAndPlay ("wait");
}
And this on the frame:
todo = "get";
eot = "false";
loadVariables ("http://dvsnt03/cgi-bin/chatscript.cgi", "", "GET");
if (olduserlist ne userlist) {
newuser = "true";
olduserlist = userlist;
}
if (scrollupdate eq "yes") {
messages.scroll = messages.maxscroll;
}
http://213.21.135.66/chat.swf
-
That link isn't working but if the CGI source is showing up in the Flash window it is most likely because your server is improperly configured and is serving the CGI as a text file rather than processing the actions within it.
Cheers
Jesse
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|