NameSilo

URL Parameters

SpaceshipSpaceship
SpaceshipSpaceship
SpaceshipSpaceship
Watch

Barrucadu

Established Member
Impact
64
How do i get a URL parameter using PHP, I know how to submit one but not how to get it on another page. e.g. on my image hosting site when you click browse it takes you to /Uploads/browseupload.php?file=filename.filextension and all i want to do is be able to use the file parameter to display the image. I have it all worked out except for recieving the parameter.
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Use

PHP:
$_GET['url_param_name']

/Uploads/browseupload.php?file=filename.filextension
would be

PHP:
$_GET['file']
 
0
Close
thanks
 
0
Close
You forgot semicolons! Make sure you add those!!
 
0
Close
I would use semicolons, but I am not writing a full line of code. Those are just examples

Just for kicks though
PHP:
echo 'Filename Is ' .  $_GET['file'];

=P
 
0
Close
Appraise.net

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back