I am just not able to send variables to a php script that inserts the data into 
the database.
I get the error "#2007 Parameter listener must be non-null".
here is the code:
var request:URLRequest = new URLRequest();
   
request.url="http://www.boyd-speer.com/autoinfo/Irish/src/php/addstudent.php";;
   request.method = URLRequestMethod.POST ;
   var variables:URLVariables = new URLVariables();
   for (i=0; i<studentreginfo.length; i++) {
    variables[(studentreginfo[i][0])] = studentreginfo[i][1];
   }
//checks to see that the variables are there...
   for (i=0; i<studentreginfo.length; i++) {
    trace(variables[(studentreginfo[i][0])]);
   }

   request.data = variables;
   var loader:URLLoader = new URLLoader();
   loader.addEventListener(Event.COMPLETE,completeHandler);
   
   try {
    loader.load(request);
   } catch (error:Error) {
    trace("Unable to load URL");
   }
   function completeHandler(event:Event):void {
    fscommand(event.target.data.firstname);
   }

Any suggestions greatly appreciated!!!
-Boyd
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to