I know my code is messy but I am still learning. I don’t really have the time right now to rewrite the code right now but I will when I get a chance which I know will help but bascially all I want to do is use the php function htmlspecialchars on my section of code where the post data is for each zone value. The reason is this xml file is being imported into excel and its throwing errors for each zone value if it happens to contain an ampersand.
[php]<?php
$myFile = “{$_POST[‘Last_Name’]}-{$_POST[‘Request_Number’]}.xml”;
$fh = fopen($myFile, ‘w’) or die(“can’t open file”);
$stringData = "<?xml version='1.0' encoding='windows-1250'?>
{$_POST[‘Request_Number’]}
{$_POST[‘Company’]}
{$_POST[‘First_Name’]}
{$_POST[‘Last_Name’]}
{$_POST[‘Phone’]}
{$_POST[‘Fax’]}
{$_POST[‘Email’]}