Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-24-2012, 12:51 AM   PM User | #1
bentatts
New to the CF scene

 
Join Date: Mar 2012
Location: Gold Coast, Australia
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
bentatts is an unknown quantity at this point
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
bentatts is offline   Reply With Quote
Old 03-24-2012, 10:50 AM   PM User | #2
MarPlo
Regular Coder

 
Join Date: Mar 2011
Posts: 145
Thanks: 0
Thanked 20 Times in 20 Posts
MarPlo is an unknown quantity at this point
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;"
__________________
MarPlo is offline   Reply With Quote
Old 03-28-2012, 12:08 PM   PM User | #3
bentatts
New to the CF scene

 
Join Date: Mar 2012
Location: Gold Coast, Australia
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
bentatts is an unknown quantity at this point
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.
bentatts is offline   Reply With Quote
Old 03-29-2012, 02:58 AM   PM User | #4
bentatts
New to the CF scene

 
Join Date: Mar 2012
Location: Gold Coast, Australia
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
bentatts is an unknown quantity at this point
I made this but it just takes me back to my site, rather than wiggle?

Quote:
<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>
bentatts is offline   Reply With Quote
Reply

Bookmarks

Tags
affiliate, coding, combine, html, search

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:49 AM.


Advertisement
Log in to turn off these ads.