/    Sign up×
Community /Pin to ProfileBookmark

php-xml-flash-URL problem

Hi,

Could someone please help me solve this issue?

I am trying to pass a variable from the URL into a script that will generate XML for a flash player to display images.

It appears to work the variable is passed through the URL:

eg [url]www.mmyywebsite.com/viewproject.php?client_name=ollie[/url]

it is retrieved using $client_name = $_GET[‘client_name’];

but when I try to insert it into the code to generate the XML it will not work:

<pic>

<image>clients/”.$client_name”./7.jpg</image>

<caption>Project One</caption>

</pic>

(this is partial XML, it does work but only when hard coded)

what am I doing wrong?

thank you

Ollie

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@PanKNov 04.2005 — Did you try to print $_GET['client_name']? Do you have anything inside it?
Copy linkTweet thisAlerts:
@p4c19authorNov 04.2005 — Hi,

Yes, it outputs the variable just as I want it, even the XML output looks fine if I echo that to the browser and view source, yet for some reason I cannot view any images when it is done this way

thanks

Ollie
Copy linkTweet thisAlerts:
@PanKNov 04.2005 — "I cannot view any images when it is done this way" - what are you trying to ecgo to a browser?
Copy linkTweet thisAlerts:
@p4c19authorNov 04.2005 — Hi,

The images are going to a flash player as seen at

http://www.kirupa.com/developer/mx2004/xml_flash_photogallery.htm

the xml file is:

<?xml version='1.0' encoding='utf-8' standalone='yes'?>

<images>

<pic>

<image>http://www.kirupa.com/developer/mx2004/pg/structure.jpg</image>

<caption>Structure</caption>

</pic>

</images>

hope this helps shed some light on the problem
×

Success!

Help @p4c19 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...