Open PHP Page On Button Click
<p>I wonder whether someone could help me please.</p>

<p>I'm put together the following form contained within a PHP file.</p>

<pre><code>&lt;form name="savemyfindstolocation" id="savemyfindstolocation" method="post"&gt;    
            &lt;p&gt;&lt;label&gt;&lt;/label&gt;
            &lt;/p&gt;
            &lt;p align="left"&gt;
                &lt;input name="userid" type="text" id="userid"/&gt;
                &lt;input name="locationid" type="text" id="locationid"/&gt;
                &lt;br /&gt;
            &lt;/p&gt;
            &lt;div&gt;
                &lt;label&gt;
                    &lt;div align="left"&gt;Click on the map to place the marker for the find that has been made and drag until the precise location has been found. &lt;/div&gt;
          &lt;/div&gt;
                    &lt;p align="left"&gt;&lt;label&gt;Find OSGB36 Latitude Co-ordinate&lt;br /&gt;
                        &lt;/label&gt;
                    &lt;/p&gt;
                    &lt;div&gt;
                        &lt;div align="left"&gt;
                            &lt;input name="findosgb36lat" type="text" id="findosgb36lat" size="20" /&gt;
                        &lt;/div&gt;
                    &lt;/div&gt;
                    &lt;p align="left"&gt;&lt;label&gt;Find OSGB36 Longitude Co-ordinate&lt;br /&gt;
                        &lt;/label&gt;
                    &lt;/p&gt;
                    &lt;div&gt;
                        &lt;div align="left"&gt;
                            &lt;input name="findosgb36lon" type="text" id="findosgb36lon" size="20" /&gt;
                        &lt;/div&gt;
                    &lt;/div&gt;
                    &lt;p align="left"&gt;&lt;label&gt;Date of Trip&lt;br /&gt;
                        &lt;/label&gt;
                    &lt;/p&gt;
                    &lt;div&gt;
                        &lt;div align="left"&gt;
                            &lt;input name="dateoftrip" type="text" id="dateoftrip" size="10" /&gt;
                        &lt;/div&gt;
                    &lt;/div&gt;
   &lt;input name="submit" type="submit" onclick="MM_callJS('savedata()')" value="Submit" /&gt;        
    &lt;/form&gt;
</code></pre>

<p>It all works fine, but I'd now like to add a button that opens the following php page, 'blobupload.php'. If I've understood this correctly from the research that I've done, I need to use javascript to open the page, using the 'submit' action from the main form.</p>

<p>What I don't understand is how to do this when the 'submit' action is already taken for the saving of the information on the main form.</p>

<p>Could someone perhaps please show me how to get around this, i.e. using the same 'submit action but for two different purposes.</p>
