-1

Need help to make a little php code anyone willing to help than please reply to this post and than we will start

3
Contributors
7
Replies
8
Views
7 Years
Discussion Span
Last Post by aryanmughal
0

as i am not a php developer so i don't know how to make this code so help required.....

<object type="application/x-shockwave-flash" style="width:470px;height:320px;" 

data="http://www.example.com/swf/[php code]">
		<param name="movie" value="http://www.example.com/swf/[php code]" />
		<param name="quality" value="very high" />
		<param name="wmode" value="transparent" />

		<param name="bgcolor" value="" />
		<param name="autoplay" value="true" />
		<param name="allownetworking" value="internal" />
		<param name="allowfullscreen" value="true" />

		<param name="allowscriptaccess" value="always" />
	</object>

let that this is a url
http://example.com/dm.php?code=xc3ezo
the code at the end of url [xc3ezo] i want it automatically replaces space in the above given code[php code] space in the above given code

Edited by Ezzaral: Added code tags. Please use them to format any code that you post.

1
<?php
$url = "http://www.example.com/swf/";
$url .= $url . $_GET["code"];
?>

<object type="application/x-shockwave-flash" style="width:470px;height:320px;" data="<?php echo $url; ?>">
<param name="movie" value="<?php echo $url; ?>" />
<param name="quality" value="very high" />
<param name="wmode" value="transparent" />

<param name="bgcolor" value="" />
<param name="autoplay" value="true" />
<param name="allownetworking" value="internal" />
<param name="allowfullscreen" value="true" />

<param name="allowscriptaccess" value="always" />
</object>

Kyle Hudson
Web Developer

Edited by Ezzaral: Snipped sig link. Please restrict such links to your site-wide user signature, which can be edited from the user control panel.

0

Try this....

<object type="application/x-shockwave-flash" style="width:470px;height:320px;" 

data="http://www.example.com/swf/<?php echo $_GET['code']; ?>">
		<param name="movie" value="http://www.example.com/swf/<?php echo $_GET['code']; ?>" />
		<param name="quality" value="very high" />
		<param name="wmode" value="transparent" />

		<param name="bgcolor" value="" />
		<param name="autoplay" value="true" />
		<param name="allownetworking" value="internal" />
		<param name="allowfullscreen" value="true" />

		<param name="allowscriptaccess" value="always" />
	</object>

OR

echo '<object type="application/x-shockwave-flash" style="width:470px;height:320px;" 

data="http://www.example.com/swf/'.$_GET['code'].'">
		<param name="movie" value="http://www.example.com/swf/'.$_GET['code'].'" />
		<param name="quality" value="very high" />
		<param name="wmode" value="transparent" />

		<param name="bgcolor" value="" />
		<param name="autoplay" value="true" />
		<param name="allownetworking" value="internal" />
		<param name="allowfullscreen" value="true" />

		<param name="allowscriptaccess" value="always" />
	</object>';
0

my code is much more effective, why would you wan't to echo the whole string?

0

diskhub,

While i was writing the code in between u already posted your code.

also i provided two options , aryan u can use any of the code according to your requirement.

0

diskhub,

While i was writing the code in between u already posted your code.

also i provided two options , aryan u can use any of the code according to your requirement.

Fair enough :P

0

Thanks Guys I really Appreciate Your work coz in future i will me here for more Help,,, Thanks Again

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.