Is there a better way to maintain a visitor than frames?

Discussion in 'Programming' started by web 24 7, Jan 25, 2006.

  1. #1
    I would like to add this affiliate product search box on all my pages - but I want to hold the result in a frame.

    The top frame being my standard header.
    The bottom frame being the result from the search.

    This is the search code that I have on my pages and need to modify it to complete the search but load in a new page in a frame.

    <table align="center" bgcolor="#E2FFE4" style="border: 1px solid #990000" cellpadding="5" summary="equipment and supplies search">
    <tr>
    <td>
    <font color="#AD3100"><b>Search Our Entire Product Range</b></font><br /><br />
    <form action="http://www.qksrv.net/interactive" method="get">
    <input type="text" name="mv_searchspec" size="25">
    <input type="hidden" name="mv_doit" value="search">
    <input type="hidden" name="mv_matchlimit" value="15">
    <input type="hidden" name="mv_search_field" value="name,description,note,category,subcategory,sku,manufacturer"><br />
    <input type="submit" value="Locate Best Price">
    <input type="hidden" name="pid" value="948421">
    <input type="hidden" name="url" value="http://www.affiliate.com/store/catalog/search.html">
    <input type="hidden" name="aid" value="805721">
    </form>

    How do I target this from a normal html page and when the search is clicked it loads a frame page where the top section is a html page which is just a header.

    The bottom is the affiliate site with the search function complete.

    Any html search forms to frame result experts out there?

    Or is there an easier way?
     
    web 24 7, Jan 25, 2006 IP
  2. WTM

    WTM Peon

    Messages:
    500
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try to change this:
    <form action="name_of_your_desired_frame.htm">
     
    WTM, Feb 6, 2006 IP
  3. web 24 7

    web 24 7 Peon

    Messages:
    313
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #3
    But that is the affiliate company - commission junction.

    I dont think the form would process without it and I need the form to complete its function and then have the result page placed into the bottom of a frame.

    I want to add a search function to my site that pulls up a third party affiliate page and shows the result in a frame page within my domain.

    Script----------

    <form action="http://www.qksrv.net/interactive" method="get">
    <input type="text" name="mv_searchspec" size="25"><input type=
    "hidden" name="mv_doit" value="search"><input type="hidden" name=
    "mv_matchlimit" value="15"><input type="hidden" name=
    "mv_search_field" value=
    "name,description,note,category,subcategory,sku,manufacturer"><br /><input type="submit"
    value="Locate Best Price"><input type="hidden" name="pid" value=
    "948000"><input type="hidden" name="url" value=
    "http://www.merchant.com/store/catalog/search.html"><input type="hidden"
    name="aid" value="805000"></form>

    --------------------

    I would like it to open in a new html frame page

    ,,,,,,,,,,,,,,,,,,,,,,,,,

    <html>

    <frameset rows="60,*" BORDER=0 FRAMEBORDER=0 FRAMESPACING=0>

    <frame src="top.html" SCROLLING="no">
    <frame src="some php search results script here?" name="bottom">

    </frameset>

    </html>
     
    web 24 7, Feb 7, 2006 IP
  4. itsme

    itsme Well-Known Member

    Messages:
    1,232
    Likes Received:
    96
    Best Answers:
    0
    Trophy Points:
    180
    #4
    Ar you sure this is allowed by their TOS?

    I know they don't like when you frame affiliate pages and similar, most networks don't allow it.

    You might want to look into it before they cancel your account and you lose your money, they tend to do that a lot these days (CJ).
     
    itsme, Feb 8, 2006 IP
  5. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #5
    If they allow it you can use the form to post to your page and then write a php script to use the data the form sends to create a url to pull in to your site.

    That way its invisible to search engines and your users.
     
    mad4, Feb 13, 2006 IP