| | |
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: 549
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 |
.htaccess action ajax apache api array auto beginner binary bounce broken cakephp checkbox class cms code cron curl database date display dynamic echo email error errorlog file files folder form format forms function functions google href htaccess html image include insert integration interactive ip java javascript joomla limit link login loop mail malfunctioning masterthesis menu mlm mod_rewrite multiple mysql nodes oop paypal pdf php popup problem query radio ram random recursion reference regex remote return script search server sessions sms soap source space sql syntax system table tutorial unset update upload url validation validator variable video web websitecontactform xml youtube






