NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page URL Parameters

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 08-09-2005, 02:35 AM THREAD STARTER               #1 (permalink)
Senior Member
 
Barrucadu's Avatar
Join Date: Aug 2005
Location: East Yorkshire, England
Posts: 2,689
Barrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to behold
 




URL Parameters


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.
Barrucadu is offline  
Old 08-09-2005, 04:24 AM   #2 (permalink)
NamePros Member
 
Icespadez's Avatar
Join Date: Apr 2005
Location: Boston, MA
Posts: 26
Icespadez is an unknown quantity at this point
 



Use

PHP Code:
$_GET['url_param_name'
????: NamePros.com http://www.namepros.com/programming/113997-url-parameters.html
/Uploads/browseupload.php?file=filename.filextension
would be

PHP Code:
$_GET['file'
Icespadez is offline  
Old 08-09-2005, 04:30 AM THREAD STARTER               #3 (permalink)
Senior Member
 
Barrucadu's Avatar
Join Date: Aug 2005
Location: East Yorkshire, England
Posts: 2,689
Barrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to behold
 




thanks
Barrucadu is offline  
Old 08-09-2005, 07:56 AM   #4 (permalink)
DNOA Member
Join Date: May 2004
Posts: 5,040
mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future
 


Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
You forgot semicolons! Make sure you add those!!
mholt is offline  
Old 08-09-2005, 11:40 AM   #5 (permalink)
NamePros Member
 
Icespadez's Avatar
Join Date: Apr 2005
Location: Boston, MA
Posts: 26
Icespadez is an unknown quantity at this point
 



I would use semicolons, but I am not writing a full line of code. Those are just examples
????: NamePros.com http://www.namepros.com/showthread.php?t=113997

Just for kicks though
PHP Code:
echo 'Filename Is ' .  $_GET['file']; 
=P
Icespadez is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
soooo many yahoo's redhippo Domain Name Discussion 5 07-13-2005 12:26 AM
Free URL Redirection LeKiz Free Resources 0 03-30-2005 12:00 PM
Parse a URL in PHP to return domain RJ Programming 43 11-12-2004 08:45 AM
help me test redhippo The Break Room 3 11-10-2004 01:18 AM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 11:53 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger