Jump to content

calling a adrese with get variable dont work


XRayden

Recommended Posts

this is a picasaweb / simple viewer manipulation, it work... not as intented.

 

you can specifie an album or a user and an album like that :

http://www.sportsmotorises.com/newviewer/?album=17052008AutodromeChaudiere

http://www.sportsmotorises.com/newviewer/?user=martin.bourget&album=StPierreDeBroughton

 

when the user is not specified, the code use 'olivierlabbe" as a user, but in the php side.

 

here is the code with "index.php"

 

first I check for a user and an album.

<?php if ($_GET['album'] == "") {print 'No album was specified'; } 
if (empty($_GET['user'])) { $userIDTag = ''; } else { $userIDTag = '\&user='.$_GET['user']; }
?>

then it call the script.

<div id="flashcontent">SimpleViewer requires Macromedia Flash. <a href="http://www.macromedia.com/go/getflashplayer/">Get Macromedia Flash.</a> If you have Flash installed, <a href="index.html?detectflash=false">click to view gallery</a>.</div>	
<script type="text/javascript">
	var fo = new SWFObject("viewer.swf", "viewer", "100%", "100%", "7", "#000000");	
	fo.addVariable("preloaderColor", "0xffffff");
	fo.addVariable("xmlDataPath", "<?php print "PicasaViewer.php?album=" . $_GET['album'].$userIDTag; ?>");	
	fo.write("flashcontent");	
</script>

 

it work when only an album is there, but when a user is specified... do not work. i've checked and the page generated by "<?php print "PicasaViewer.php?album=" . $_GET['album'].$userIDTag; ?>" is working (output an xml)

so I thought it was the "&" that was not working

I tried : \&, &, \&

none of it worked... got an idea?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.