Summer Sale! All accounts are 50% off this week.

davy_yg's avatar
Level 27

Image button

Hello,

I have been trying to create an image button that would works and could process the form:

seller.blade.php

<input type="image" src="images/reg/btn_kirim.jpg" name="Submit" width="300">
<!-- <input type="submit" value="Submit"> -->

The submit button that I comment out works, but I need an image for a button. The image only showing and if I hover it turns into a pointing finger but it does not process the form.

Nothing happen if I click the button.

(the submit button does works!)

0 likes
4 replies
davy_yg's avatar
Level 27

After rechecking it, my submit button don't works only clickable.

Everything works fine ealier.

seller.blade.php

<form action="{{ url('/daftarseller') }}" method="POST" enctype="multipart/form-data">
{{ csrf_field()}}

....

<input type="submit" value="Submit"> 
rin4ik's avatar
rin4ik
Best Answer
Level 50

rollback what you did and everything will work fine like earlier

davy_yg's avatar
Level 27

I think I know why it is error.

Perhaps because I have a really long codes between forms.

After separating the mobile version into another blade it finally works.

@extends('seller_mobile')

and I already get the image button works too using the same code that I uses.

Please or to participate in this conversation.