Button INPUT that save datas and link at the same time
- by user1722384
Im doing a questionare (form) and i need to put a button submit that do two things :
1) Be a button type INPUT ( because I need to use this kind of button on my php code, I've if(@$_POST['Next']) for save the dates of the form in my DB).
2) That this button will have a link for go to the next screen of the questionare. I tried with
a href="demo2.html" target="_blank"><input class="buttonNext" name="submit" type="submit" value="NEXT ←" ></a
This code don't works but with IE browser on the page page appears a circle next to my button that are the link. So the button don't works, only save the data, but don't link to the next page.
How can I solve it ?