PDA

View Full Version : LoadVars to specific PHP functions...


maxx
10-31-2005, 10:22 PM
So here's a random question - is it possible to target a LoadVars to one specific php function in a sheet of many? For instance, instead of calling myLV.load("getList.php"); - is it possible to target the function "getFullInfo()" on page "functions.php"?

I honestly couldn't even figure out what keywords to search on this one, but I'm a bit tired now. So, if this is written up someplace that anyone can remember off the top of their heads, I'd really appreciate either a link or search criteria.

CyanBlue
10-31-2005, 10:32 PM
Howdy... :)

I don't think you can do that... You will need to create separate PHP files...

Flash Gordon
11-01-2005, 12:15 AM
the only thing I cant think of is this for example.

<?php
if($_POST['whichFunction'] == "First Function") {
fucntionOne();
}
else if ($_POST['whichFunction'] == "Second Function") {
functionTwo();
}
?>

myLV.whichFunction = "First Function";

maxx
11-01-2005, 12:21 AM
CyanBlue - Howdy back at ya! :D Good to be back, though in all honesty I'm feeling rather soft-headed at this point with some of the trouble I'm having here....

Flash Gordon - Dude! I didn't even think of that... That is certainly an idea worth checking into...

Thanks guys!