one more beginner question for ya.
I have a textbox, and a submit button and this php code. How do i get the posted val from the text box into the PerformSearch method as a parameter. do i just go "PerformSearch(form[0][0]) ?
Code: Select all
include 'FTSearch.php';
if(isset($_POST['Submit'])) {
$ftSearch = new FTSearch();
$testarray = $ftSearch->PerformSearch(mytextboxvar); // << need the text in here
foreach($testarray as $elm){
echo $elm . '<br>';
}
}
mcm