PDA

View Full Version : url encode


haveacigar
09-22-2006, 07:03 PM
ok, im new to this and have read bits on the internet about it, but i have no idea how to do this without spending ages typing out, so heres my problem

I want a video title with a video underneath, which is loaded into a single php page. The video part is fine, but the title isnt.

There are lots of different titles, which i would like to load into the page, but it seems impossible with one variable.


$dhas = urlencode ('Death Has a Shadow');

<a href="video.php?name=video=http://www.dailymotion.com/swf/4tbjXv9wM69yR1yMb" >
<img src="nav/familyguy/dhas.gif" width="30%" border="0"/><br />
$dhas</a>

because there are different names, i would like to have a single variable so it is able to load into this page


<?php
print
'<object width=100% height=100%>
<param name="movie" value="' . $_GET['video'] .'"></param>
<embed src="'. $_GET['video'] .'" type="application/x-shockwave-flash"
width=100% height=100%></embed></object>'
?>


but obviously it cant, as id have to type out all the different variables into the url, and on the output all would be displayed. Im sure this can be done, but is still out of grasp from a noobie like me.

Cheers for any help

Ciggy

Taylor_1978
09-22-2006, 09:14 PM
Do you have mysql on your server or any type of database? (No worries if you don't we can use a txt file, but want to know before giving you advise of what to do)

haveacigar
09-22-2006, 09:16 PM
Do you have mysql on your server or any type of database? (No worries if you don't we can use a txt file, but want to know before giving you advise of what to do)

uh no...i havent really got that far with the php http://club.cdfreaks.com/images/smilies/6/redface.gif im am just using the php off my ftp site

haveacigar
09-23-2006, 06:00 PM
not to sound impatient but does anyone have any ideas? also is mysql able to be stored on a ftp site? without having to keep your pc turned on...

haveacigar
09-25-2006, 09:15 PM
3 days no replies? someone must know...