Hi

I have 2 separate php scripts, each calling a different class, first one submits form data for contact us purposes, 2nd one firstly lets you browse a file on your computer and then upload the file.

I have a php file that includes both forms above, along with their buttons.

Question:
I want to have one button to do both tasks, instead of 2 separate buttons, so 1 button will submit contact info and also upload data?


My button codes:


****************************
Submit button - using Class to send name,email,message information (contact us info)
****************************
<input type="submit" class="button" name="<?php echo $form_id; ?>" id="<?php echo $form_id; ?>" value="<?php echo $submit_text; ?>" alt="<?php echo $submit_text; ?>"<?php echo $x_or_h; ?>><br<?php echo $x_or_h; ?>>


***************************
Upload button - using Class to upload file to server
***************************
<form name="upload" id="upload" method="POST" enctype="multipart/form-data" action="<?=$_SERVER["PHP_SELF"]?>">
<td align=center><input type="submit" name="submit" id="submit" value="Upload"></td>






Thanks In Advance

Tovia singer