Jump to content

CoolAffiilate

Members
  • Posts

    17
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

CoolAffiilate's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. 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.
  2. 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?
  3. ok, you edited it... Works great now! Thanks for your help everyone!
  4. 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?
  5. Nope, I got this code from a programming buddy. I really have no clue.
  6. Fatal error: Call to undefined function size() in random.php on line 6 When tested the above fixed code gives this error.
  7. How do I close the array?
  8. 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!
  9. ok, i got it. I just was not posting the address after I called it. THANK YOU!
  10. 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'];?>">
  11. 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/[email protected]" Please help me out.
  12. 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?
  13. THANK YOU! I have been searching for hours how to do this. Its so simple. Agian, thank you!
  14. Wow, thank you! I would just put the <?php and close it, then done right?
  15. It needs to be a redirect.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.