php 2 svg problems

hi i got a odd little question for those of you with php and svg
background. i've only been working with php for about a month off & on and
i'm guessing it's a dom problem. my question goes as follows:

first of all this is a test for an svg postcard website and i'm trying to
get my php page variables to interact with the php code in the svg.

by the way i'm running foxserv(Apache, mySQL, PHP4) in win98 if your
wondering.

i have an svg file called svgcardtest.svg (code below)
i also have a php file called index.php (code also below)
how do i get the php variables in index.php sent into the php variables in
svgcardtest.svg? also i know it is not a server/php problem because
variables the do get processed and removed from both files. good luck and
thanks for any help. chucky.

--------------------PHP-----------------------PHP-----------------------
<html>
<head><title>-TEKT-</title>
</head>
<body>
<?php
$Rname="recievers name";
$Remail="recievers@email";
$Sname="senders name";
$Semail="senders@email";
$Message="this is so cool.";
?>
<table width=100% height="100%" cellpadding="0" cellspacing="0"
border="0">
<tr><td align="center" valign="middle">
<embed width="500" height="400" src="svgcardtest.svg">
</td></tr>
<tr><td align="center" valign="middle">
<a href="home.html" alt="click to enter tekt"><b>click here to enter
tekt</b></a>
</td></tr>
</table>
</body>
</html>


--------------------SVG-----------------------SVG-----------------------
<?php
header("Content-type: image/svg+xml");
?>

<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg width="500 px" height="400 px"
xmlns="http://www.w3.org/2000/svg">

	<ellipse fill="rgb(193,235,255)" cx="97" cy="97" rx="59" ry="57"/>
	<ellipse fill="rgb(66,190,242)" cx="97" cy="182" rx="24.5"
ry="24.5"/>
	<ellipse fill="rgb(66,103,242)" cx="97" cy="319" rx="42" ry="42"/>
	<text fill="rgb(0,0,0)" font-size="12" x="186px" y="61px"
font-family="Verdana">recipients name:</text>
	<text fill="rgb(0,0,0)" font-size="12" x="187px" y="79px"
font-family="Verdana">recipients email:</text>
	<text fill="rgb(0,0,0)" font-size="12" font-family="Verdana"
x="197px" y="97px">senders name:</text>
	<text fill="rgb(0,0,0)" font-size="12" font-family="Verdana"
x="197px"
		y="115px">senders email:</text>
	<text fill="rgb(0,0,0)" font-size="12" font-family="Verdana"
x="397px"
		y="171px">:message</text>
	<text id="Rname" fill="rgb(0,0,0)" font-size="12"
font-family="Verdana"
		x="290px" y="61px">
	<?php echo $Rname; ?>
	</text>
	<text id="Remail" fill="rgb(0,0,0)" font-size="12"
font-family="Verdana"
		x="290px" y="79px">
	<?php echo $Remail; ?>
	</text>
	<text id="Sname" fill="rgb(0,0,0)" font-size="12"
font-family="Verdana"
		x="290px" y="97px">
	<?php echo $Sname; ?>
	</text>
	<text id="Semail" fill="rgb(0,0,0)" font-size="12"
font-family="Verdana"
		x="290px" y="115px">
	<?php echo $Semail; ?>
	</text>
	<text id="Message" fill="rgb(0,0,0)" font-size="12"
font-family="Verdana"
		x="197px" y="186px" width="200">
	<?php echo $Message; ?>
	</text>
</svg>

ffccphp@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org

Received on Friday, 12 April 2002 20:09:28 UTC