CoolAffiilate
Members-
Posts
17 -
Joined
-
Last visited
Never
Everything posted by CoolAffiilate
-
Im trying to get the varibles from a url http://www.cool.com/index.php?&varibale=1&variable2=2 then post it like this http://www.cool.com/1/2 and have them go to it. ?PHP header"(http://www.cool.com/<GET VARIBALE 1>/<GET VARIABLE 2> exit I totally suck a php.
-
I know this is easy, but I cant quite figure it out. I am trying to redirect users using variables. For example http://www.mysite.com/index.php?&variable=1&variable=2.... I want to redirect them using the same varibles but in a new way... http://www.mysite.com/variable/variable/ Anyone know how I would call the variable, and redirect the people istantly?
-
ok, you edited it... Works great now! Thanks for your help everyone!
-
Ok, one more thing. When i use the script posted above. I have a homepage with a link pointing the PHP file, sometimes when I click the link, it will just go back to the current page. Why?
-
Nope, I got this code from a programming buddy. I really have no clue.
-
Fatal error: Call to undefined function size() in random.php on line 6 When tested the above fixed code gives this error.
-
How do I close the array?
-
Hello everyone, Maybe you can help me figure out what I am doing wrong. I am trying to split test 2 affiliate links. The user is sent to a PHP file and the file will randomly pick a link, and forward the user. But, the code is not working. Here is what I have tried. Try #1 <?php $webarray = array("http://www.site1.com", "http://www.site2.com", "http://www.site3.com", "http://www.site4.com"; $rand = rand(0,size($webarray)); header( 'Location: '.$webarray[$rand]) ; ?> Gives an Error Line 5. Try #2 <?php $rand = rand(1,2); if($rand =1) header( 'Location: http://www.site1.com' ) ; else header('Location: http://www.site2.com); ?> Just goes to the 1st rand. Will not even go to the 2nd site. Thanks!
-
ok, i got it. I just was not posting the address after I called it. THANK YOU!
-
would i do this? This is what i am doing and its not getting the address < A href="http://www.cool.com/<?php $address = $_GET['address'];?>">
-
Ok... The Url passes this value: http:www.mysite.com/index.php?address=test%40testtt%2Ecom how do I pass the address to a link on the page: a href="http:www.cool.com/index.php/test@testtt.com" Please help me out.
-
I am very new to PHP, and I dont know if this is even possible. I will try to explain the best I can. A person votes for something, and once they click submit a prompt pops up and asks for the e-mail address. They input the e-mail address into the prompt, then the e-mail address is passed to the next page. Would this be possible, and how would I go about doing it?
-
THANK YOU! I have been searching for hours how to do this. Its so simple. Agian, thank you!
-
Wow, thank you! I would just put the <?php and close it, then done right?
-
It needs to be a redirect.
-
Thank you... But the problem is slightly different. What i need to do is capture the query string, and pass it on to a partner via URL. mine is: cool.com/welcome.php?address=emailaddy but they need notcool.com/welcome.php?email=emailaddy It needs to work similiar to a redirect.
-
Hey Php Freaks! I need some help here. Im really new at php... so if anyone can point me in the right direction that would be great! Here is what I am looking for: A person signs up at my newsletter. Cool@cool.com. The newsletter script ads them to the database, then sends them to the subscribed page with the variable added to the query string: mynewsletter.com/subscribed.html?address=coolguys%email but what i need is to send them to a page that needs the variable mynewsletter.com/welcome.php?email= It will use the variable. So, i need a script that will read a query string, and convert it into a new URL... Anyone understand? Thanks!