Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
isset($_GET["image"] PHP Error
Old 11-15-2008, 08:00 AM isset($_GET["image"] PHP Error
Junior Talker

Posts: 1
Name: varghese
Trades: 0
This is my PHP script.This file is working in my localsystem, i am using WAMP server in localsystem.
But when i hosted the files in the server, nothing is working..

<object id="flashmovie" type="application/x-shockwave-flash" data="gallery.swf" width="100%" height="100%">
<param name="movie" value="gallery.swf" />
<param name="FlashVars" value="<? if(isset($_GET["image"])) echo "topimage=".$_GET["image"] ?>" />
</object>

Pls help
varghesedxb is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-15-2008, 05:37 PM Re: isset($_GET["image"] PHP Error
Ultra Talker

Posts: 483
Trades: 0
It would help if you posted the actual, currently generated output from your server, but I'm going to take a stab in the dark and say "short tags".

Change the '<?' before your if into a '<?php' and see if that works.
__________________

Please login or register to view this content. Registration is FREE
TwistMyArm is offline
Reply With Quote
View Public Profile
 
Old 11-24-2008, 06:08 AM Re: isset($_GET["image"] PHP Error
Experienced Talker

Posts: 48
Name: Pieter
Location: Holland
Trades: 0
It might we the <?php mistake

but somtimes "I don't know why" isstet doesn't work in small letter but written with caps on ISSET it does work...

Good luck
elcosmo is offline
Reply With Quote
View Public Profile
 
Old 11-25-2008, 03:31 AM Re: isset($_GET["image"] PHP Error
Experienced Talker

Posts: 32
Name: Dan
Location: New Zealand
Trades: 0
You've forgotten a semi-collin here I think:

if(isset($_GET["image"])) echo "topimage=".$_GET["image"]; ?>
__________________

Please login or register to view this content. Registration is FREE
/ PHP Web Development and Design Services

Please login or register to view this content. Registration is FREE
Awesome new Facebook app
Rumadon is offline
Reply With Quote
View Public Profile Visit Rumadon's homepage!
 
Old 11-25-2008, 07:01 AM Re: isset($_GET["image"] PHP Error
Skilled Talker

Posts: 51
Trades: 0
also isnt it normally a single quote in the $_GET ?

i.e.

PHP Code:
if (isset($_GET['image'])) { 
or does it not matter?
__________________
- Techmonkey.
Free Tech Support:
Please login or register to view this content. Registration is FREE

We are also looking for helpers!
Techmonkeys is offline
Reply With Quote
View Public Profile
 
Old 11-25-2008, 08:35 AM Re: isset($_GET["image"] PHP Error
Average Talker

Posts: 19
Trades: 0
I believe the line

PHP Code:
<param name="FlashVars" value="<? if(isset($_GET["image"])) echo "topimage=".$_GET["image"?>" />
would produce something in the format <param name="FlashVars" value="topimage=example.jpg" />

Do you need the 'topimage=' part as I'm not aware of a topimage attribute for param. If you need this, you may need to output as two variables $_GET['value'] and $_GET['image'] like

PHP Code:
<param name="FlashVars" value="<?php if(isset($_GET['value'])) echo $_GET['value'?>" topimage="<?php if(isset($_GET['image'])) echo $_GET['image']; ?>" />
or if you need just the image variable output as value

PHP Code:
<param name="FlashVars" value="<?php if(isset($_GET['image'])) echo $_GET['image']; ?>" />
Hope this helps
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Last edited by Limotek; 11-25-2008 at 08:43 AM..
Limotek is offline
Reply With Quote
View Public Profile Visit Limotek's homepage!
 
Reply     « Reply to isset($_GET["image"] PHP Error
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.85510 seconds with 12 queries