1..use an event. Lets say you want to do some clientside validation:
<input type="button" name="submit" value="Add Folder" onClick="return someFunction();">
This calls a function called someFunction, so in the head of your page:
<script>
function someFunction()
{
//do you clientside stuff, then to submit:
formName.submit();
}
</script>
IMO you should wrap an anchor tag around an image so the cursor changes to a hand when the user mouses over the button (or use css to style the input type=button to crate the hand onMouseover) The other downfall is the fact you can not hit the enter button to submit the form (you must click the button)
;;;how can we post data using javascript function and ordinary buttons.
2..If you dont need to run a
JS function but just want to submit when the user clicks the button use:
<input type="button" name="submit" value="Add Folder" onClick="formName.submit();">
Wind is your friend
Matt