Send current URL in URL with a $_GET variable problem.


Posted on 16th Feb 2014 07:03 pm by admin

Hello community,

I have created a function that gets the current variable of a page, example:

Did you know?Explore Trending and Topic pages for more stories like this.
current page URL:
Code: [Select] http://example.com/activate.php?token=123&code=321
Now, I want to send this address as a URL variable, and retrieve it with a $_GET in another page,example:
Code: [Select]http://example.com/process.php?action=true&r_address=http://example.com/activate.php?token=123&code=321
PROBLEM:
I only get :
Code: [Select]http://example.com/activate.php?token=123
when I retrieve r_address with $_GET['r_address'] in process.php, as you can see code=321 is being considered a different variable.

Is there any way to "encapsulate" (if you will) an URL with variables into a $_GET variable ?

Will appreciate any help, thank you.
No comments posted yet

Your Answer:

Login to answer
291 Like 30 Dislike
Previous forums Next forums
Other forums

Xacute search within SQL results
I have a query that is pulling data, and I want to return a specific value from the results of that

Displaying image pathname instead of image
Hello

Im trying to upload and then display images from a mysql database - Its only basic and

Weird Problem with curl while sending data
I am facing a weird problem with sending data to a site via curl.

If i send the value by this

cURL Sending File as Post
This is a bit complicated, I'm just hoping someone else has run into this and knows how to do it a d

blank page.... nothing is happening.
I'm new to a lot of this but in the last 24hrs have learned a lot.
Installed latest version of my

PHP and Javascript
Hello Everyone,

I have a page that needs a javascript code to be written between PHP code but

Help with lottery style system?
I'm working on a currency system for forums and it is going to have a type of lottery system built i

defining website tags
Hi,

What would be the best way to define tags for my site, such as website title, url etc.

Number Format
Hi All,

I have number '000000000050085' I want to format it to 500.85 Can any one give me

SQl num_rows problem
when i try to count rows from an SQL select i get an warning

Code: [Select]$countviews = mysq

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash