arunk.fun
Members
-
Joined
-
Last visited
Reputation Activity
-
arunk.fun reacted to JordanC in HTML Code for ButtonHello All,
I put my question straight here.
If my website address is www.abcd.in a "Click Here" button should be linked to http://www.XXXXXXXX.com/?r=1234567
If my website address is www.abcd.in/?r=11111 a "Click Here" button should be linked to http://www.XXXXXXXX.com/?r=11111
Please help me a HTML Code for creating a Click here button.
Thanks All. _________________________
<?php if (($_SERVER['HTTP_HOST'] == "abcd.in") OR ($_SERVER['HTTP_HOST'] == "www.abcd.in")) { echo '<a href="http://www.XXXX.com/?r=1234567">Click Here</a>'; } else if (($_SERVER['HTTP_HOST'] == "abcd.in/?r=11111") OR ($_SERVER['HTTP_HOST'] == "www.abcd.in/?r=11111")){ echo '<a href="http://www.XXXX.com/?r=11111">Click Here</a>'; } ?> This is the type of thing your looking for it seems, but that won't work alone, you need to have PHP generating the correct ID numbers (/?r=11111) for the url. As I presume these are just example numbers your throwing up. To get my example working you need this to be running inside a .PHP file not .HTML.
HTML
If those numbers are actually correct and the ones you will be using (doubtful) then:
www.abcd.in
<a href="http://www.XXXX.com/?=1234567">Click Here</a>
www.abcd.in/?r=11111
<a href="http://www.XXXX.com/?=11111">Click Here</a>
-
arunk.fun reacted to junior in HTML Code for ButtonThere are two ways to create a button such as you have:
http://www.w3schools.com/tags/att_button_type.asp this explains one way and then you can style the button.
The other is as Vulcan has written and then you style the <a> and Click2Rupee button classes to look as you wish the button to
-
arunk.fun reacted to Vulcan in HTML Code for ButtonHere is the code that the button links to.
<a target="_blank" href="http://www.clixsense.com/?r=3488429" class="Click2Rupee button"></a>