Jump to content

[SOLVED] Text box image


damdempsel

Recommended Posts

Is there a way to make a input box have an image? I know you can do it with submit buttons but I can't seem to find anything with text boxes. I guess it doesn't need to be an image as much as a color. Anyone know how?

Here is a code I found for the submit button:

<form name="form1" action="target_file.php" method="GET or POST">

 

//Your form fields

 

//Here is the submit button

<a href="java script:document.form1.submit();" title="Submit the Form"><img src="image.png" onmouseover="this.src='image2.png';" onmouseout="this.src='image.png';" border="0"></a>

</form>

Link to comment
Share on other sites

if you want to make a text box a certain color, you can use CSS, IE

<input type="text" style="background-color:#000000" ...etc />

 

that would make the background color black. Obviously, you could set the background-image attribute, as well as any other attribute you wanted. BTW this is a CSS problem, not really a PHP problem

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.