Closed Thread
Results 1 to 5 of 5




  

Thread: Image in php?

      
  1. #1
    unr
    unr is offline
    Jedi Master unr is a name known to allunr is a name known to allunr is a name known to allunr is a name known to allunr is a name known to allunr is a name known to allunr is a name known to allunr is a name known to allunr is a name known to allunr is a name known to allunr is a name known to all unr's Avatar
    Join Date
    July 27, 2007
    Posts
    1,682
    Rep Power
    5
    Feedback Score
    0

    Default Image in php?

    I'm working with wordpress.


    I'm using a search bar, with an image button for the search button.



    I am unable to get the php to load the image.


    I've tried combinations of includes, and _e's. via php.

    Using simple 'src=images/' doesn't work either.


    Anyone know how to get this to work?



    I've done it via CSS, by placing my image as the background.
    But the word Search still pops up overtop, and I can't get rid of that.





    this is included via php.

    Code:
    <form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
    
    	<input type="text" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" size="15" /> 
    	<input type="image" src='images/go.jpg'  width='86' height='27' id="go" value="Search" />
    
    </form>

    This is the css
    Code:
    #searchbar
    {
    	width: 420px;
    	height: 36px;
    	float: left;
    	font-size: 18px;
    	margin: 41px 0 0 0;
    }
    
    #searchbar #s
    {
    	width: 303px;
    	height: 28px;
    	font-size: 18px;
    	color: #3888e1;
    	background-image: url('images/search.jpg');
    	background-repeat: no-repeat;
    	float: left;
    	border: none;
    	text-indent: 8px;
    }
    
    #searchbar #go
    {
    	float: left;
    	margin: 2px 0 0 10px;
    }

  2. #2
    Idolized By All noppid is just really nicenoppid is just really nicenoppid is just really nicenoppid is just really nicenoppid is just really nicenoppid is just really nicenoppid is just really nice noppid's Avatar
    Join Date
    October 12, 2006
    Location
    Florida
    Posts
    487
    Rep Power
    6
    Feedback Score
    0

    Default

    Remove search from the value, make empty quotes maybe?

    HTML Code:
    <input type="image" src='images/go.jpg'  width='86' height='27' id="go" value="" />
    Free vBulletin hacks and vBulletin Support.
    Talk to bikers around the world about motorcycles.
    Clogging an american dance step.

  3. #3
    unr
    unr is offline
    Jedi Master unr is a name known to allunr is a name known to allunr is a name known to allunr is a name known to allunr is a name known to allunr is a name known to allunr is a name known to allunr is a name known to allunr is a name known to allunr is a name known to allunr is a name known to all unr's Avatar
    Join Date
    July 27, 2007
    Posts
    1,682
    Rep Power
    5
    Feedback Score
    0

    Default

    Tried that. D;
    I think.. I'll try again.



    WTF.
    I swear I tried that before.

    But oh well, it worked. Thanks alot.

  4. #4
    Idolized By All noppid is just really nicenoppid is just really nicenoppid is just really nicenoppid is just really nicenoppid is just really nicenoppid is just really nicenoppid is just really nice noppid's Avatar
    Join Date
    October 12, 2006
    Location
    Florida
    Posts
    487
    Rep Power
    6
    Feedback Score
    0

    Default

    It's always like that. I know the feeling. Glad it worked. You probably tried it and saw the cached result thus thinking it didn't work.
    Free vBulletin hacks and vBulletin Support.
    Talk to bikers around the world about motorcycles.
    Clogging an american dance step.

  5. #5
    unr
    unr is offline
    Jedi Master unr is a name known to allunr is a name known to allunr is a name known to allunr is a name known to allunr is a name known to allunr is a name known to allunr is a name known to allunr is a name known to allunr is a name known to allunr is a name known to allunr is a name known to all unr's Avatar
    Join Date
    July 27, 2007
    Posts
    1,682
    Rep Power
    5
    Feedback Score
    0

    Default

    something like that. D;

    Again, much appreciated.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. How do I hide link for an image ??
    By veenuisthebest in forum HTML & Website Design
    Replies: 12
    Last Post: May 5th, 2008, 6:20 am
  2. Help with image design
    By Red Hot Mama in forum Forum Lounge
    Replies: 1
    Last Post: Apr 6th, 2008, 5:18 pm
  3. not picking image
    By Kaos in forum Forum Management
    Replies: 1
    Last Post: Apr 17th, 2007, 8:03 am
  4. Image Script
    By nanobi in forum HTML & Website Design
    Replies: 4
    Last Post: Jan 27th, 2007, 6:05 am

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
WebTalkForums
WebTalkForums
Recent Forum Threads