I have a form that posts the data using: " method="post" enctype="multipart/form-data">
The posted data has some calculations performed and the results are fed back to the form fields. The submit button is called Calculate. if(isset($_POST['Calculate']))
This works fine. However, I added another button, called Print, which I want to use to post the data for use on another page. if(isset($_POST['Print']))
Is there a method that would allow this? Basically changing the form action from PHP_SELF to newpage.php when the Print button is clicked.
Thanks.
enctype="multipart/form-data"is used mainly for file attachments/uploading, so I doubt you need this, unless that's another thing you are offering in your form.