XML into PHP Script?
Posted: Mon Jun 08, 2009 12:01 am
I have a php script. I want to put a xml file in it, but cant seem to do it. I purchased a flash menu bar for XML, I keep getting this error -
The character '<' cannot be used in an attribute value.
<Menu menuName="Home" Url="index.php?referid=<? echo $referid; ?>" window="_self" swf="" FrameLabelStop="" FrameLab...
This is the xml flash menu file i'm trying to use:
Im trying to put the XML file into this. Im trying to replace the old menu buttons(red):
I dont know if this is even possible. I bought the php script, and the XML file. I know a little bit about php, but not enough. I know nothing about using xml files, except editing them. I need some help on this one.
Thanks in advance.
alsoCannot view XML input using XSL style sheet
The character '<' cannot be used in an attribute value.
<Menu menuName="Home" Url="index.php?referid=<? echo $referid; ?>" window="_self" swf="" FrameLabelStop="" FrameLab...
This is the xml flash menu file i'm trying to use:
Code: Select all
<?xml version="1.0" encoding="iso-8859-1"?>
<MenuItems BarColor="000000" menuText1="FFFFFF" menuText2="000000">
<Menu menuName="Home" Url="index.php?referid=<? echo $referid; ?>" window="_self" swf="" FrameLabelStop="" FrameLabelPlay=""/>
<Menu menuName="Details" Url="details.php?referid=<? echo $referid; ?>" window="_self" swf="" FrameLabelStop="" FrameLabelPlay=""/>
<Menu menuName="FAQ" Url="faq.php?referid=<? echo $referid; ?>" window="_self" swf="" FrameLabelStop="" FrameLabelPlay=""/>
<Menu menuName="Sign Up" Url="signup.php?referid=<? echo $referid; ?>" window="_self" swf="" FrameLabelStop="" FrameLabelPlay="" />
<Menu menuName="Login" Url="memberlogin.php?referid=<? echo $referid; ?>" window="_self" swf="" FrameLabelStop="" FrameLabelPlay="" />
<Menu menuName="Contacts" Url="contact.php?referid=<? echo $referid; ?>" window="_self" swf="" FrameLabelStop="" FrameLabelPlay="" />
<Menu menuName="Testimonials" Url="testimonials.php?referid=<? echo $referid; ?>" window="_self" swf="" FrameLabelStop="" FrameLabelPlay="" />
</MenuItems>
Code: Select all
</script>
<?
include "config.php";
include "style.php";
?>
<html><head>
<link href="images/main.css" rel="stylesheet" type="text/css">
<link href="images/gb_styles.css" rel="stylesheet" type="text/css" media="all">
<style type="text/css">
<!--
body {
margin-top: 0px;
background-attachment: fixed;
background-image: url(../images/back1.jpg);
background-repeat: repeat;
margin-bottom: 0px;
}
-->
</style></head><body background="images/back1.jpg" behavior="fixed">
<div id="site_wrapper" style="display: block;" align="center">
<table background="images/tableback.jpg" border="0" cellpadding="0" cellspacing="0" width="775">
<tbody><tr>
<td>
<div align="center">
<a href="http://www.domain.com"><img src="images/header.jpg" alt="domain.com" width="775" height="225" border="0" style="margin: 0pt; padding: 0pt;"></a>
<table border="0" cellpadding="0" cellspacing="0" width="774">
<tbody><tr>
<td><table align="center" border="0" width="94%">
<tbody><tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="82%">
<tr>
<td>
</td></tr>
</table>
<table width="80%" border="0" align="center">
<tr >
[color=#FF0000]<td width="13%" class=button onMouseOver="this.className='buttontwo'" onMouseOut="this.className='button'" tabIndex=8 ><div align="center"><a href="index.php?referid=<? echo $referid; ?>">HOME</a></div></td>
<td width="13%" class=button onMouseOver="this.className='buttontwo'" onMouseOut="this.className='button'" tabIndex=8><div align="center"><a href="details.php?referid=<? echo $referid; ?>">DETAILS</a></div></td>
<td width="13%" class=button onMouseOver="this.className='buttontwo'" onMouseOut="this.className='button'" tabIndex=8><div align="center"><a href="faq.php?referid=<? echo $referid; ?>">FAQ</a></div></td>
<td width="13%" class=button onMouseOver="this.className='buttontwo'" onMouseOut="this.className='button'" tabIndex=8><div align="center"><a href="signup.php?referid=<? echo $referid; ?>">SIGNUP</a></div></td>
<td width="13%" class=button onMouseOver="this.className='buttontwo'" onMouseOut="this.className='button'" tabIndex=8><div align="center"><a href="memberlogin.php?referid=<? echo $referid; ?>">LOGIN</a></div></td>
<td width="13%" class=button onMouseOver="this.className='buttontwo'" onMouseOut="this.className='button'" tabIndex=8><div align="center"><a href="contact.php?referid=<? echo $referid; ?>">CONTACTS</a></div></td>
<td width="13%" class=button onMouseOver="this.className='buttontwo'" onMouseOut="this.className='button'" tabIndex=8><div align="center"><a href="testimonials.php?referid=<? echo $referid; ?>">TESTIMONIALS</a></div></td>[/color] </tr>
</table>
<div align="center"></div> Thanks in advance.