Button INPUT that save datas and link at the same time
Posted
by
user1722384
on Stack Overflow
See other posts from Stack Overflow
or by user1722384
Published on 2012-11-01T10:55:56Z
Indexed on
2012/11/01
11:00 UTC
Read the original article
Hit count: 154
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 ?
© Stack Overflow or respective owner