Creating a search form to another website with an affiliate link code
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">
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,
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;"
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.
I made this but it just takes me back to my site, rather than wiggle?
|All times are GMT +1. The time now is 08:06 PM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.