Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Mar 2012
    Location
    Gold Coast, Australia
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up Creating a search form to another website with an affiliate link code

    Hey all,

    Need a little help with this one. I created a nifty little search box that will take the user to another site but with the result they're after. The code is below.

    form action="http://www.wiggle.co.uk/?s= method="get" target ="blank" >
    input type="text" name="s">
    button type="Submit">Search</button>
    </form

    And now I need to add the link the affiliate company use so they can keep track of the traffic I'm sending the other website. The code they've given me is:

    a href="http://www.awin1.com/cread.php?awinmid=1857&awinaffid=137450&clickref=Search&p=http%3A%2F%2Fwww.wiggle.co.uk%2F%3Fs%3D" onmouseover="self.status='http://www.wiggle.co.uk/?s='; return true;" onmouseout="self.status=''; return true;" target="_new"></a

    Has anyone got any idea how I could make this work? you can check out my website www.ridersrepublic.squarespace.com to see how the original works.

    Look forward to hearing from you,
    Ben

  • #2
    Regular Coder
    Join Date
    Mar 2011
    Posts
    148
    Thanks
    0
    Thanked 20 Times in 20 Posts
    Hi,
    Try add this code in <form> that will open another page to the affiliate company.
    onsubmit="window.open('a href="http://www.awin1.com/cread.php?awinmid=1857&awinaffid=137450&clickref=Search&p=http%3A%2F%2Fwww.wiggle.co.uk%2F%3Fs%3D; return true;"

  • #3
    New to the CF scene
    Join Date
    Mar 2012
    Location
    Gold Coast, Australia
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for the reply I had no luck with that code, I need to still display the search result on the screen like how the link displays now. If you search for say tubes and click submit, It will take you to the search result on the other website.
    I'm trying to get the same result but by going thru the affiliate link.
    Hope that makes sense.

  • #4
    New to the CF scene
    Join Date
    Mar 2012
    Location
    Gold Coast, Australia
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I made this but it just takes me back to my site, rather than wiggle?

    <p><span style="text-decoration: underline;"><form ="http://www.awin1.com/cread.php?awinmid=1857&awinaffid=137450&clickref=&p=http://www.wiggle.co.uk/?s= method="get" target ="blank" >
    <input type="text" name="s">
    <button type="Submit">Search</button>
    </form></span></p>


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •