W3C home > Mailing lists > Public > www-svg@w3.org > April 2002

php 2 svg problems

From: FFCC PHP <ffccphp@sdf.lonestar.org>
Date: Sat, 13 Apr 2002 00:09:20 +0000 (UTC)
To: <www-svg@w3.org>
Message-ID: <Pine.NEB.4.33.0204122350500.9170-100000@sdf.lonestar.org>
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

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.

$Rname="recievers name";
$Sname="senders name";
$Message="this is so cool.";
<table width=100% height="100%" cellpadding="0" cellspacing="0"
<tr><td align="center" valign="middle">
<embed width="500" height="400" src="svgcardtest.svg">
<tr><td align="center" valign="middle">
<a href="home.html" alt="click to enter tekt"><b>click here to enter

header("Content-type: image/svg+xml");

<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
<svg width="500 px" height="400 px"

	<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"
	<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"
		y="115px">senders email:</text>
	<text fill="rgb(0,0,0)" font-size="12" font-family="Verdana"
	<text id="Rname" fill="rgb(0,0,0)" font-size="12"
		x="290px" y="61px">
	<?php echo $Rname; ?>
	<text id="Remail" fill="rgb(0,0,0)" font-size="12"
		x="290px" y="79px">
	<?php echo $Remail; ?>
	<text id="Sname" fill="rgb(0,0,0)" font-size="12"
		x="290px" y="97px">
	<?php echo $Sname; ?>
	<text id="Semail" fill="rgb(0,0,0)" font-size="12"
		x="290px" y="115px">
	<?php echo $Semail; ?>
	<text id="Message" fill="rgb(0,0,0)" font-size="12"
		x="197px" y="186px" width="200">
	<?php echo $Message; ?>

SDF Public Access UNIX System - http://sdf.lonestar.org
Received on Friday, 12 April 2002 20:09:28 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:46:52 UTC