| | |
url pass question
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jun 2005
Posts: 92
Reputation:
Solved Threads: 0
how can I pass GET url which contains character "?" to php file.
for example I have url:
http://www.mysite.com/file1.php?stri...a1=1&a2=2&a3=3
I want to pass all string "file2.php?a1=1&a2=2&a3=3" into file1.php
now on file1.php, if I use
$v=$_REQUEST['string'];
echo "$v";
I only get
file2.php?a1=1
it lost rest "a2=2&a3=3"
how can I fix this issue?
Any idea?
for example I have url:
http://www.mysite.com/file1.php?stri...a1=1&a2=2&a3=3
I want to pass all string "file2.php?a1=1&a2=2&a3=3" into file1.php
now on file1.php, if I use
$v=$_REQUEST['string'];
echo "$v";
I only get
file2.php?a1=1
it lost rest "a2=2&a3=3"
how can I fix this issue?
Any idea?
PHP Syntax (Toggle Plain Text)
$_SERVER['QUERY_STRING']
GCS d- s+ a-->? C++(++++) UL+++ P+>+++ L+++ E--- W+++
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
•
•
Join Date: Sep 2009
Posts: 557
Reputation:
Solved Threads: 64
0
#3 Oct 9th, 2009
See all your variable in get request like-
This will print the $_get variable.
You can access each var by its name like index of the array for ex.
$p1 = $_get['p1'];
$p2 = $_get['p2'];
PHP Syntax (Toggle Plain Text)
echo '<pre>'; print_r($_get); echo '</pre>';
You can access each var by its name like index of the array for ex.
$p1 = $_get['p1'];
$p2 = $_get['p2'];
![]() |
Similar Threads
- are hyphenated url names good or bad? (Search Engine Optimization)
- Question (Oracle)
- Validating problems (PHP)
- Linking a URL to Image Question (VB.NET)
- need help understandin how to pass by reference. (Java)
- Debian Linux xserver configuration (Window and Desktop Managers)
- Tutorials for Linux (*nix Software)
Other Threads in the PHP Forum
- Previous Thread: holiday property reservation logic
- Next Thread: weather data
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access advanced ajax apache api array autosuggest beginner binary broken cakephp checkbox class cms code cron curl database date directory display download dynamic echo email emptydisplayvalue error explodefunction file files folder form forms function functions google hack href htaccess html image include insert integration ip java javasciptvalidation javascript joomla keywords limit link login loop mail matching menu mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query radio random recursion regex remote script search searchbox server sessions sms soap source space sql structure syntax system table tutorial update upload url validation validator variable video web website xml youtube






