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

Disable html within defined tags
I have a mysql database that allows users to enter content with html, but I also want to have a tag

Problem executing bash script using shell_exec
Hi there,
I created a bash script file using following code to convert doc documents to pdf using

a dificult string search
Hi I don't know a way around this. I want the user to input a password, but to make it a bit complca

Locking mysql tables with php
Hi

BACKGROUND:
I have multiple instances of the same php script running in a WAMP environ

form problem
below in the form action, i've put "test.php?w=$sw&h=$sh" but when i input the for

Database connection failure
Hello All,

I am trying to create new connection to Oracle DB 10.1,
I could not see a

Echo-ing MySQL content and Keep Formatting?
I have data in my MySQL such as:

QuoteBlah blah

Blah blah

etc
but when i ech

Recode Abap Dynpro into Web Dynpro
Hi All,
A client has asked us to look at rearchitecting a custom transaction that was developed

Scrolling news bar and MySQL
I am not sure if this is the correct forum to post this on. If not, I apologize. I am still pretty

Casting Decimals in Oracle
This code worked as a query in DB2, but I am not sure what the syntax is for casting decimals in Ora

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