Jump to content

Multiple array redirection


ginger44

Recommended Posts

Hello,

 

I want two variables to be in a php script.

 

Say this is the URL I want redirected:

http://www.mysite.com/room=786876&user=67277

 

Room and User are the 2 variables that will be changing. I want the PHP code to look like this:

http://www.mysite.com/1.php?room=whatever&user=whatever

 

I want it so that whatever i put after the room= and before the &, and also after user=, it will go to that url.

 

So, if http://www.mysite.com/room=whatsup&user=hello was the URL, the script would look like this:

http://www.mysite.com/1.php?room=whatsup&user=hello

 

1.php being the code in the script.

 

Lol I know this sounds sort of confusing, but hopefully somebody can help me out.

Link to comment
https://forums.phpfreaks.com/topic/45841-multiple-array-redirection/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.