[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 08-09-2005, 01:35 AM   #1 (permalink)
Barru.
 
Barrucadu's Avatar
 
Join Date: Aug 2005
Location: East Yorkshire, England
Posts: 2,731
78.50 NP$ (Donate)

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 online now  
Old 08-09-2005, 03:24 AM   #2 (permalink)
NamePros Member
 
Icespadez's Avatar
 
Join Date: Apr 2005
Location: Boston, MA
Posts: 26
290.00 NP$ (Donate)

Icespadez is an unknown quantity at this point


Use

PHP Code:
$_GET['url_param_name']
/Uploads/browseupload.php?file=filename.filextension
would be

PHP Code:
$_GET['file']
Icespadez is offline  
Old 08-09-2005, 03:30 AM   #3 (permalink)
Barru.
 
Barrucadu's Avatar
 
Join Date: Aug 2005
Location: East Yorkshire, England
Posts: 2,731
78.50 NP$ (Donate)

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 online now  
Old 08-09-2005, 06:56 AM   #4 (permalink)
DNOA Member
 
mholt's Avatar
 
Join Date: May 2004
Location: Utah
Posts: 5,041
18.01 NP$ (Donate)

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!!
__________________
codeboards

A high-quality community of programmers -- Join today and post! We want new members!
mholt is offline  
Old 08-09-2005, 10:40 AM   #5 (permalink)
NamePros Member
 
Icespadez's Avatar
 
Join Date: Apr 2005
Location: Boston, MA
Posts: 26
290.00 NP$ (Donate)

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

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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

Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 09:39 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85