Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Go Back   Code Forums > Application and Web Development > PHP
User Name
Password

Reply
 
LinkBack Thread Tools Display Modes
Old 02-13-2008, 05:08 PM   #1 (permalink)
Wysocki
Recruit
 
Join Date: Jan 2005
Location: Covina, CA
Posts: 21
Wysocki is on a distinguished road
Passing a parameter to php from the URL

I've worked a bit with php and html but now I have what seems to be a really simple problem that I'm stuck on. I have a webpage at Ace Pelizon - Video that contains code to show a flash video file. By going to just the video.php page, I want it to play the default video file (acevideo.flv) but I want to be able to have it come up with another video file by just putting the filename in the url, like this:

Code:
http://acepelizon.com/html/video.php?vidfile=othervideo.flv
Then in php, I would be able to use the $vidfile variable to insert the filename into the flash script. I initially thought I should be able to do this with just html, but then I gave up and switched to php so that I could pre-process the page and put in the new filename. But I still have no idea how to make this work. I've been Googling for over an hour with no success. Can anyone give me a clue here?
__________________
Wysocki is offline   Reply With Quote
Old 02-13-2008, 05:29 PM   #2 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,116
Belisarius is on a distinguished road
$_GET['vidfile']

?
__________________
GitS
Belisarius is offline   Reply With Quote
Old 02-13-2008, 05:38 PM   #3 (permalink)
Wysocki
Recruit
 
Join Date: Jan 2005
Location: Covina, CA
Posts: 21
Wysocki is on a distinguished road
Doh!
Been spending too much time looking at porn, I guess. Can't see the obvious anymore!

THANX!
__________________
Wysocki is offline   Reply With Quote
Reply


Thread Tools
Display Modes

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

vB 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
Make a search engine for your website with PHP zhisede PHP 3 10-25-2005 07:54 AM
PHP 5.0.4 and 4.3.11 Released sde Code Newbie News 0 04-20-2005 10:56 AM
Need a bit-o-guidence on passing parms to PHP jimmyoctane PHP 2 12-28-2004 07:55 AM
PHP vs .NET Redline Lounge 1 11-24-2004 06:10 AM
Passing form data to PHP with Javascript bdl PHP 5 07-03-2002 10:18 AM


All times are GMT -8. The time now is 10:19 AM.


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2006, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
Open Circle