input type="image" for submit buttons by default?

General ShopSite user discussion

input type="image" for submit buttons by default?

Postby ajhauser » Thu Dec 08, 2011 9:20 pm

So it seems like I am able to place my search bar anywhere after editing the following code:

Code: Select all
<form name="productsearch" class="productsearch" action="http://brotherscountrysupply.com/cgi-bin/sc/productsearch.cgi" method="get" >
        <input type= "image" src="http://brotherscountrysupply.com/store/media/country-pet-supply-form-button-search-2.png" class="FloatRight" border=0 name="http://brotherscountrysupply.com/store/media/country-pet-supply-form-button-search-2.png" alt="http://brotherscountrysupply.com/store/media/country-pet-supply-form-button-search-2.png">
        <div class="TopSearchContainer">
        <input name="search_field" type="text" class="TopSearchField" value="Search Brothers Country Supply" />
        </div>
        <input type= "hidden" name="storeid" class="FloatRight" value="*1e8471a159014817ab2094b6e99e04b86d">
       
</form>


My question is this - how does ShopSite know that "<input type= image" is a "submit" button?
How does this make the form submit?

Thank you very much.
Website Design, Website Development, eCommerce and Hosting
ajhauser
 
Posts: 84
Joined: Tue Dec 06, 2011 4:18 pm
Location: Earlville - the land of Earls

Re: input type="image" for submit buttons by default?

Postby Jim » Fri Dec 09, 2011 8:13 am

It knows that it is an image because that is what you set where you configure the button. There is usually a text field and an image selection field associated with each possible button and there is a radio button which indicates which to use. The search button is what you have in the code you had in the post and that probably comes from Preferences > Search Setting > Search Layout or maybe Preferences > Store Text > Store pages. (I don't have access to a store right now so can't check.) But similar fields are on the Products > Edit Product Layout (pro stores only) for the add and view cart buttons and on Preferences > Store text > ... screens for shopping cart, billing thank you, gift certificate etc.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah


Return to User Forum

Who is online

Users browsing this forum: No registered users and 152 guests