![]() |
small PHP question [pls help!]
Id like to see if an aff code is there or not for a test, but with my C64 programmaing capabilities Im not getting there :) Pls help...
http://refer.ccbill.com/cgi-bin/clic...y.com/test.php This is in the test.php: <?php if (PA = = 0) { echo "AFF CODE NOT THERE"; } else { echo "AFF CODE THERE"; } ?> It needs to print AFF CODE THERE when the &PA=999999 or so and if PA isnt there (zero) it needs to print AFF CODE NOT THERE. I know the = = have a space but otherwise the haha codes comes in... Any 2 cents? thanks! Bob |
use
Code:
$_GET['PA'] |
hmm.. I'm no guru by any stretch of imagination..but if your page is on strawberrysandy.com and the variable goes to refer.ccbill.com domain, I don't think it'll carry on to strawberrysandy.
|
also, instead of
= = you should use Code:
if(isset($_GET['PA'])) |
however darksoul seems to have more clue than me..so maybe you ought to listen to him instead. :1orglaugh
I suck at teh interwebs |
Quote:
|
Quote:
|
Quote:
Basically what I want is to be able to print a link on a .html site when theres NO aff code and when there IS it needs to be remove. Some aff hate the bloglink so I want that to be removed automatically when an aff send the link. When its a typein it can be there. Any more 2 cents? |
Quote:
I don't have the api's at hand right now but I'll take a look when I get home. |
Quote:
|
hmm shame, so the only way to enable that would like adding
www.strawberrysandy.com/test.php&blog=off or so? darksoul can you shoot me an icq to see if you can solve this? 16 91 547 thanks! |
Quote:
the HTML var can not only contain an url but variables too. so you can put: HTML=http://www.domain.com/?VAR=VALUE&VAR2=XXX this variables are usually populated by you when the user click but some can be populated by ccbill. I have to lookup their api. |
thanks for hitting me up!
|
Why don't you just get people to send to a different URL? You can include("...") the original content.
eg, you could name a file tournoblog.php and put something like this in it: <?php $noblog = 1; include "tour.php"; ?> |
Cheers to GFY for an actual useful technical discussion... Let us know if you figure it out.
|
Quote:
|
| All times are GMT -7. The time now is 07:08 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123