Guest Posted September 30, 2005 Posted September 30, 2005 Does anyone know how I can change all the buttons on my site to the html form generated type? I would like to know how to make the HTML type which would replace the current image buttons. So all buttons at my site would be replaced: Current Code Example: <a href="javascript:history.back(-1);"><?php echo tep_image_button('button_back.gif', IMAGE_BUTTON_BACK); ?></a> Replaced with: <form><input TYPE=button VALUE="<< Go Back " onClick="history.go(-1)"></form></td> Current Code Example: <?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '">' . tep_template_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?> Replaced with: Unknown- Change to the HTML type code which creates its own button (like the first example above). I sure hope I made sense. Any help would be greatly appreciated!
Guest Posted September 30, 2005 Posted September 30, 2005 Here's how I did exactly that for a quick search field: <?php echo tep_draw_form('advanced_search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get') . tep_draw_hidden_field('search_in_description','1') . tep_draw_input_field('keywords', '', 'size="10" maxlength="50" style="width: ' . (BOX_WIDTH-50) . 'px"') . ' <input type="submit" value="Search" name="Search">'; ?> </form> You should be able to get the gist of it from that. -jared
Guest Posted October 6, 2005 Posted October 6, 2005 Here's how I did exactly that for a quick search field: <?php echo tep_draw_form('advanced_search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get') . tep_draw_hidden_field('search_in_description','1') . tep_draw_input_field('keywords', '', 'size="10" maxlength="50" style="width: ' . (BOX_WIDTH-50) . 'px"') . ' <input type="submit" value="Search" name="Search">'; ?> </form> You should be able to get the gist of it from that. -jared Thanks! I'll give it a try.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.