This makes no sense

When I compile my project locally it works, but when I upload it to my web server, certain things don’t work. For example…

I have this function for when an account creation form is submitted:


function submitAcc(event:MouseEvent):void {
						var gw:NetConnection = new NetConnection();
						gw.connect("http://www.mysite.net/amfphp/gateway.php");
						var res:Responder = new Responder(onResult1, onFault1);
						function onResult1(responds:Object):void{
							if(responds == "taken"){
								messageBox.messBoxName.text = "Username Taken!";
								messageBox.messBoxDesc.text = "Sorry, but this username is already taken.";
							} else if(regUser.text == "" || regEmail.text == "" || regPass1.text == "" || regPass2.text == "" || regQ.text == "" || regA.text == ""){
								messageBox.messBoxName.text = "Blank Fields!";
								messageBox.messBoxDesc.text = "You left something blank, please go back and correct it.";
							} else if(regUser.length < 6 || regUser.length > 16 || regPass1.length < 6 || regPass1.length > 16 || regPass2.length < 6 || regPass2.length > 16){
								messageBox.messBoxName.text = "Incorrect Length";
								messageBox.messBoxDesc.text = "Your username and password must be 6-16 characters in Length.";
							} else if(regPass1.text != regPass2.text){
								messageBox.messBoxName.text = "Invalid Data";
								messageBox.messBoxDesc.text = "The two passwords entered do not match";
							} else {
								//If everything checks out...
								var gw:NetConnection = new NetConnection();
								gw.connect("http://www.mysite.net/amfphp/gateway.php");
								var res:Responder = new Responder(onResult2, onFault2);
								function onResult2(responds:Object):void{
									if(responds == "success"){
										messageBox.messBoxName.text = "Account Created!";
										messageBox.messBoxDesc.text = "Your account was successfully created!";
									} else {
										messageBox.messBoxName.text = "Error!";
										messageBox.messBoxDesc.text = "An error has occurred.";
									}
									var myBitmap:BitmapData = new login(4, 4);
									graphics.beginBitmapFill(myBitmap);
									graphics.drawRect(0, 0, 800, 600);
									graphics.endFill();
									removeChild(regUser);
									removeChild(regEmail);
									removeChild(regPass1);
									removeChild(regPass2);
									removeChild(regQ);
									removeChild(regA);
									removeChild(backBtn);
									removeChild(submitBtn);
									addChild(newAcc);
									addChild(newCredits);
									addChild(newLogin);
									addChild(exit);
									addChild(username);
									addChild(pass);
								}//End onResult2
									function onFault2(responds:Object):void{
										for(var i in responds){
										trace(responds*);
										}
									}//End onFault2
								gw.call("register.request", res, regUser.text, regPass1.text, regEmail.text, regQ.text, regA.text);
							}//End If everything checks out
						}//End onResult1
						function onFault1(responds:Object):void{
							for(var i in responds){
								trace(responds*);
							}
						}
						gw.call("register.check", res, regUser.text);
						
						messageBox.x = 400;
						messageBox.y = 300;
						//messageBox.messBoxName.text = "Registrations Closed!";
						//messageBox.messBoxDesc.text = "Sorry, we are currently not accepting any registrations";
						addChild(messageBox);
						messageBox.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
						messageBox.addEventListener(MouseEvent.MOUSE_UP, dropIt);
						messageBox.closeBtn.addEventListener(MouseEvent.MOUSE_UP, closeMessageBox);
					} // End Submit New Account Request

That when I compile it locally works fine. Everything is correctly, submitted, everything. However when I run it on my web server, it just produces a blank messageBox. Seeming as if it’s not processing a lot of the information…