osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

modify search.php

This is a discussion on modify search.php within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; Hi - I've modified search.php, so that the text "enter keyword" initially appears in the search field when a page ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 07-17-2007, 06:36 AM
Member
 
Join Date: Aug 2004
Posts: 94
Thanks: 4
Thanked 0 Times in 0 Posts
Rep Power: 0
basnyd
Default modify search.php

Hi -

I've modified search.php, so that the text "enter keyword" initially appears in the search field when a page loads. What I would like to have happen is that the words "enter keyword" disappears as soon as someone clicks in the search box so that they can enter the keyword they would like to search for.

This is what I have so far -

$boxContent .= tep_draw_hidden_field('search_in_description','1') . tep_draw_input_field('keywords', 'enter keyword', 'size="12" maxlength="30" ') . '&nbsp;' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '<br><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>';

If you look at lands' end's web site, their search box behaves the way I want the oscMax search box to behave.

With my solution so far, the person needs to highlight "enter keyword" and manually delete it before they type in the keyword they want to search on.

All pointers are greatly appreciated. Thank you!
Barb
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
How to modify the Search box? mjfontec osCMax v2 Customization/Mods 1 03-08-2007 03:13 PM
How to have Quick Search also search in Descriptions ozstar osCommerce 2.2 Modification Help 1 12-09-2005 11:45 AM
Modify this... tonic osCommerce 2.2 Modification Help 1 01-11-2005 07:19 AM
Full text search in advanced search Anonymous osCMax v1.7 Discussion 0 04-15-2004 02:00 PM
How to make search box also search descriptions marco6090 osCommerce 2.2 Modification Help 0 01-06-2003 04:31 AM


All times are GMT -8. The time now is 11:59 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax