Use <button> to submit data

hey, quick question can you submit data without a submit button? and instead use a <button>?

I would usually do something like this :

<input type="submit" name="submit" />


if(isset($_POST['submit']))
{
//....do some crap
}

However, I’m trying to do it using:

 <button name="button">My Button</button>

Is it possible? I’m just curious and I’m trying to get it to work…but I haven’t quite solved it.

Cheers :slight_smile: