Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove 'submit query' from a form submit?

Tags:

html

I have an html form and the submit button says "submit query". How can I remove this text? I am using a background image for the submit button and this text is messing up the button :( Any help would be greatly appreciated.

like image 863
Zach Smith Avatar asked Sep 07 '25 16:09

Zach Smith


2 Answers

If you do not give your submit button a value

<input type="submit" />

instead of something like

<input type="submit" value="Submit" />

it will display 'submit query' by default. Try giving it a space &nbsp; as the value.

like image 118
Brandon Avatar answered Sep 10 '25 09:09

Brandon


use:

<input type='submit' name='btnTest2' value=''>

Leave the value blank and there will be no words on the button. Since you're using a background image a for the button, give the button a height and width, otherwise it will display as a small gray blip (because there are no words on the button).

like image 39
tahdhaze09 Avatar answered Sep 10 '25 08:09

tahdhaze09