PDA

View Full Version : loadVars question



markhegz
January 19th, 2004, 03:08 PM
i am using loadVars with the send method to send my contact info to a php file. This works fine but when i press the submit button the browser goes to the email.php file. How do i prevent it from opening that file in the browser window?

heres the as

lv = new LoadVars();
lv.name = name;
lv.company = company;
lv.phone = phone;
lv.email = email;
lv.message = message;
lv.send("email.php", "POST");
}

eyezberg
January 19th, 2004, 05:25 PM
try GET or sendAndLoad

markhegz
January 19th, 2004, 05:29 PM
teah i figured it out....the sendAndLoad works...thanks