Forum Moderators: coopster
Could anyone help, please.
the works i have done as following:
the following video is going to submit, and i want to resize the size to be smaller.
<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/VsS130ngqMU"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/VsS130ngqMU" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>
<html>
<body><?php
if($_POST['object']){
$object=addslashes($_POST['object']);
$object=htmlspecialchars($object);
echo $object;
echo "<br>";
$pattern="/width=\"([0-9]+)\" height=\"([0-9]+)\"/";
$replacement="width=\"100\" height=\"100\"";
$object= preg_replace($pattern, $replacement, $object);
$object=htmlspecialchars_decode($object);
}
else{
?>
<form action="Test.php" method="post">
<INPUT type="text" name="object" value="" maxlength="500">
<input type="submit" value="Submit">
</form>
<?php
}
?>
</body>
</html>