Ron Olds - 2008-01-28

I am stuck and hope someone can help me. I created a small program to fetch the form information:
<?php
   include "Snoopy.class.php";
   $snoopy = new Snoopy;
   
   $snoopy->fetchform("http://www.courtclerk.org/cp_civil_cj.asp");
   print $snoopy->results;      
?>

Which returned the information below among others, but the pertinate information is shown below:

<form ACTION="/cp_civil_cj_summary.asp" name="cp_civil_cj_results" method="post" onsubmit="return checkform(this);">
<input name="case_number" id="FFC" type="text">
<input TYPE="SUBMIT" VALUE="Submit">
<input name="RESET" type="RESET">
</form>

What I am trying to do is to fill in the form with a search item and process the form with:

<?php
   include "Snoopy.class.php";
   $snoopy = new Snoopy;
   
   $submit_url = "http://www.courtclerk.org/cp_civil_cj.asp";
   
   $submit_vars["case_number"] = "cj0800001";
   $submit_vars["SUBMIT"] = "submit";
       
   $snoopy->submittext($submit_url,$submit_vars);
   print $snoopy->results;
?>

But it doesnt seem to work. Looking through the forum I noticed that to use $submit_vars["SUBMIT"] = "submit"; I would need to know the name of the submit button, but the name isnt given and I am assuming the  default name would be 'submit'.

Can anyone point out my error?

Thanks