Send("flash.php", "POST")

l = new LoadVars();
l.user = login_name;
l.company = login_company;
l.email = login_email;
l.phone = login_phone;
l.send(“flash.php”, “POST”);

Works great, but it opens the “flash.php” window.
I want the php/sql submission to happen out of view.

Is there a way to invoke the “flash.php” with out having it launch?

I’m going to put a javascript close.window command, but that seems cheesy

Hmmm, you might be able to just put

l.send(“flash.php”);

POST is the default value for the field. Flash might be confusing it for the other parameter, which is the target window. Try it out? I’ll look into it more.

Didn’t work.

Any other thoughts?

use sendAndLoad instead,
100% garanteed :wink:

Thanks, but the one’s I tried didn’t work…

1.) l.sendandload(“flash.php”, “POST”);
2.) l.sendandload(“flash.php”[POST]);
3.) l.sendandload(“flash.php”);

Which one (if any) is the right way? Thanks!

I figured it out, in case anybody else had/has this problem:

l = new LoadVars();
l.user = login_name;
l.company = login_company;
l.email = login_email;
l.phone = login_phone;
l.sendAndLoad(“flash.php”,l,“post”);

I needed to put the targetObject “[COLOR=Red]l[/COLOR]” into the (“flash.php”,[COLOR=Red]l[/COLOR],“post”)

and use proper capitalization :slight_smile:
sendAndLoad