Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

MSN Search within osCommerce


mpiscopo

Recommended Posts

Posted

I am trying to replace the osCommerce search with a search using MSN. I have the search box working fine; however, I want to have the results displayed within my site with my header/footer/left and right columns. Can someone give me some help?

 

Thanks in advance,

Mark

 

Here is the code I'm using for my searchmsn.php box:

 

<?php

/*

$Id: search.php,v 1.22 2003/02/10 22:31:05 hpdl Exp $

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

Copyright © 2003 osCommerce

Released under the GNU General Public License

*/

?>

 

<!-- search using MSN //-->

<tr>

<td>

<?php

$info_box_contents = array();

$info_box_contents[] = array('text' => BOX_HEADING_SEARCHMSN);

new infoBoxHeading($info_box_contents, true, false);

 

$info_box_contents = array();

$info_box_contents[] = array('text' => '

<!-- Site search from MSN -->

<form method="get" action="http://search.msn.com/results.aspx">

<input type="hidden" name="cp" value="1252" />

<table bgcolor="#FFFFFF">

<tr>

<td>

<input type="text" name="q" size="20" />

<input type="submit" value="Search Site" />

<input type="hidden" name="q1" value="site:www.wholesalersusainc.com" />

</td>

</tr>

</table>

</form>

<!-- Site Search from MSN -->

');

 

 

new infoBox($info_box_contents);

?>

</td>

</tr>

<!-- search_eof //-->

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...