<a href="register.php"><img src="img/register.jpg" width="262" height="98" /></a>
I did it like this. But how to use it to send data when pressed. I want analog:
<input type="submit" />
<a href="register.php"><img src="img/register.jpg" width="262" height="98" /></a>
I did it like this. But how to use it to send data when pressed. I want analog:
<input type="submit" />
onclick="form_id.submit()";
form_id-link to your form you want to send (done through a DOM search)
form_id=document.getElementById('your_form_id')
or document.forms.your_form_name
- KaZac <form action="register.php"> <button type="submit" style="background: url('img/register.jpg'); height: 98px; width: 262px;" /> </form>
Source: https://ru.stackoverflow.com/questions/178296/
All Articles