buge Posted June 12, 2017 Author Share Posted June 12, 2017 I have no idea what you are asking. What went crazy? Just because you kept getting CALIfor as a value? The reason you got that is because they didn't send you a value for 'db'.!!! You now know what the query string was coming in. All you need to add that to some 'outgoing' url is a "?" at the front to make it a proper query string for some other page to receive. Is that what you want to do? u mean dp? if yes-isnt dp in my control?its not a var they giving,they give all whats is after "dp=". so u telling me- i can cancel the dp, and just after > www.example.com/index.php?(here to paste the advs vars?) like that: www.example.com/index.php?&aff_sub=utmsandbox&aff_sub2={teaser_id}&aff_sub3={geo}&aff_sub4={campaign_id}&aff_sub5=c2FuZGJveF8yMjYzNTY4XzE0OTYzMjMyOTNfc2FuZGJveA%2A%2A Quote Link to comment https://forums.phpfreaks.com/topic/304076-php-coding/page/2/#findComment-1547275 Share on other sites More sharing options...
ginerjm Posted June 12, 2017 Share Posted June 12, 2017 (edited) NO - dp is the FIRST item in the query string. It just doesn't have the ? in front of it because the parse_url removed it. And they didn't provide a value for dp. Can't you see how the string is formatted with "dp=&"? Doesn't that look odd to you? And that is why your logic gave you the CALIfor value because dp was empty as you expected. When building a query string for a url, the first argument uses a ? and all the rest use an &. You don't do ?&. Edited June 12, 2017 by ginerjm Quote Link to comment https://forums.phpfreaks.com/topic/304076-php-coding/page/2/#findComment-1547276 Share on other sites More sharing options...
ginerjm Posted June 13, 2017 Share Posted June 13, 2017 Does your lack of a recent post man that this is resolved? If so - please close it. Quote Link to comment https://forums.phpfreaks.com/topic/304076-php-coding/page/2/#findComment-1547285 Share on other sites More sharing options...
buge Posted June 13, 2017 Author Share Posted June 13, 2017 i wish i had resolve it. NO - dp is the FIRST item in the query string. It just doesn't have the ? in front of it because the parse_url removed it. And they didn't provide a value for dp. Can't you see how the string is formatted with "dp=&"? Doesn't that look odd to you? And that is why your logic gave you the CALIfor value because dp was empty as you expected. When building a query string for a url, the first argument uses a ? and all the rest use an &. You don't do ?&. they dont provide dp,this is inside the php ocde,not something they send. its take me a while-cause im trying to know if i will open a campain-how could it work-in i get just the vars after the dp.. should i put something unrelated ut the dp-so it will work?how could i follow it... Quote Link to comment https://forums.phpfreaks.com/topic/304076-php-coding/page/2/#findComment-1547291 Share on other sites More sharing options...
ginerjm Posted June 13, 2017 Share Posted June 13, 2017 If you don't want to send on the dp and its null value, then don't. Jeez! Otherwise - try and make some sense in your next post cause I don't know what the h... you said above. they dont provide dp,this is inside the php ocde,not something they send.its take me a while-cause im trying to know if i will open a campain-how could it work-in i get just the vars after the dp.. AFAIK the dp value is SENT by something along with ALL the other values so I don't know what you mean And as for it taking a while..... what the h... are you talking about? Never mind - I don't care. And what's a campain? Quote Link to comment https://forums.phpfreaks.com/topic/304076-php-coding/page/2/#findComment-1547292 Share on other sites More sharing options...
buge Posted June 13, 2017 Author Share Posted June 13, 2017 i put something in dp... how can i be sure all the vars r passing to the end? thats the campain http://www.games4all.co/page1/page1-en91.php?dp=zvika&aff_sub=utmsandbox&aff_sub2={teaser_id}&aff_sub3={geo}&aff_sub4={campaign_id}&aff_sub5=c2FuZGJveF8yMjYzNTY4XzE0OTYzMjMyOTNfc2FuZGJveA%2A%2A Quote Link to comment https://forums.phpfreaks.com/topic/304076-php-coding/page/2/#findComment-1547297 Share on other sites More sharing options...
ginerjm Posted June 13, 2017 Share Posted June 13, 2017 Once again I don't understand what you are saying. What does "passing to the end" mean to you? Means nothing to me! Quote Link to comment https://forums.phpfreaks.com/topic/304076-php-coding/page/2/#findComment-1547298 Share on other sites More sharing options...
buge Posted June 13, 2017 Author Share Posted June 13, 2017 its means: that the link im getting at the end of 3 questions (the button contiune)-is only passing the var "zvika",but not the vars after "&aff_sub=utmsandbox&aff_sub2=%7Bteaser_id%7D&aff_sub3=%7Bgeo%7D&aff_sub4=%7Bcampaign_id%7D&aff_sub5=c2FuZGJveF8yMjYzNTY4XzE0OTYzMjMyOTNfc2FuZGJveA%2A%2A" when u hover the button u see only the word after the dp,but only one var..the rest dont passing thru. am i clear now? Quote Link to comment https://forums.phpfreaks.com/topic/304076-php-coding/page/2/#findComment-1547318 Share on other sites More sharing options...
ginerjm Posted June 13, 2017 Share Posted June 13, 2017 The var 'zvika'?????? I don't see that in any of your posts. Signing off. Communication is definitely not your strong suit. Quote Link to comment https://forums.phpfreaks.com/topic/304076-php-coding/page/2/#findComment-1547319 Share on other sites More sharing options...
buge Posted June 13, 2017 Author Share Posted June 13, 2017 (edited) OMG u said its not matter what i putt after dp-it will all pass,so i just put something there...but the others dont pass!! if u have no wish to contiune help i get it. or if u dont know the answer. Edited June 13, 2017 by buge Quote Link to comment https://forums.phpfreaks.com/topic/304076-php-coding/page/2/#findComment-1547320 Share on other sites More sharing options...
benanamen Posted June 13, 2017 Share Posted June 13, 2017 (edited) or if u dont know the answer. The problem is, you don't know the question. Edited June 13, 2017 by benanamen Quote Link to comment https://forums.phpfreaks.com/topic/304076-php-coding/page/2/#findComment-1547326 Share on other sites More sharing options...
buge Posted June 13, 2017 Author Share Posted June 13, 2017 (edited) whats the problem to understand--- im built a landing page -with 3 questions,at the end of the question there a contiune button that suppose to pass vars to another site. but its only gets the first one. here is the link: http://www.games4all.co/page1/page1-en91.php?dp=zvika&aff_sub=utmsandbox&aff_sub2=%7Bteaser_id%7D&aff_sub3=%7Bgeo%7D&aff_sub4=%7Bcampaign_id%7D&aff_sub5=c2FuZGJveF8yMjYzNTY4XzE0OTYzMjMyOTNfc2FuZGJveA%2A%2A but in the end-its pass only the var zvika (its the dp var). Edited June 13, 2017 by buge Quote Link to comment https://forums.phpfreaks.com/topic/304076-php-coding/page/2/#findComment-1547328 Share on other sites More sharing options...
benanamen Posted June 14, 2017 Share Posted June 14, 2017 (edited) You need to take a look at what you are actually trying to pass. Does this look right to you? If you viewed the console you would have seen the problems. You might want to learn how to use the browser's developer tools. Uncaught SyntaxError: Unexpected end of input net::ERR_BLOCKED_BY_CLIENT page1-en91.php?dp=zvika&aff_sub=utmsandbox&aff_sub2={teaser_id}&aff_sub3={geo}&aff_sub4={campaign_i…:239 Edited June 14, 2017 by benanamen Quote Link to comment https://forums.phpfreaks.com/topic/304076-php-coding/page/2/#findComment-1547329 Share on other sites More sharing options...
buge Posted June 14, 2017 Author Share Posted June 14, 2017 You need to take a look at what you are actually trying to pass. Does this look right to you? page1-en91.php?dp=zvika&aff_sub=utmsandbox&aff_sub2={teaser_id}&aff_sub3={geo}&aff_sub4={campaign_i…:239 whats wrong with them?thats what important to me: &aff_sub=utmsandbox&aff_sub2=%7Bteaser_id%7D&aff_sub3=%7Bgeo%7D&aff_sub4=%7Bcampaign_id%7D&aff_sub5=c2FuZGJveF8yMjYzNTY4XzE0OTYzMjMyOTNfc2FuZGJveA%2A%2A thats the link im getting from advertiser. to what form i need to change? Quote Link to comment https://forums.phpfreaks.com/topic/304076-php-coding/page/2/#findComment-1547330 Share on other sites More sharing options...
benanamen Posted June 14, 2017 Share Posted June 14, 2017 Yeah, pretty sure {teaser_id}, {geo} and so on are not what you are supposed to actually be using. Try replacing those things with the actual values they are supposed to be. Quote Link to comment https://forums.phpfreaks.com/topic/304076-php-coding/page/2/#findComment-1547331 Share on other sites More sharing options...
buge Posted June 14, 2017 Author Share Posted June 14, 2017 (edited) Yeah, pretty sure {teaser_id}, {geo} and so on are not what you are supposed to actually be using. Try replacing those things with the actual values they are supposed to be. i did-i changed it..and still only the first var is passing thru the other site. maybe this is the problem? <a class="yes-button" href="http://gamesvid.go2cloud.org/aff_c?offer_id=1348&aff_id=1122&aff_sub=<?php echo $dp?>" >CONTINUE</a> should i change <?php echo $dp?> cause of this its takes only the dp ,which in this case is "zvika"?if yes-what should i write there-that it will take all vars? Edited June 14, 2017 by buge Quote Link to comment https://forums.phpfreaks.com/topic/304076-php-coding/page/2/#findComment-1547332 Share on other sites More sharing options...
buge Posted June 14, 2017 Author Share Posted June 14, 2017 anyone that understood whats the problem? Quote Link to comment https://forums.phpfreaks.com/topic/304076-php-coding/page/2/#findComment-1547339 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.