[FX.php List] Form will not submit with IE browser
Nick
whatdoyouwant at gmail.com
Sat Sep 27 12:33:34 MDT 2008
much of the problem it seems to me comes from using single quotes in html or
no quotes at all in the html.
here is something that may work better:
your php, possibly fixed (below) .. btw, I use nusphere phped for editing
php and html.
<?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Edit Company</title>
</head>
<body>
<?php
require_once ('FX/FX.php');
require_once ('server.php');
require_once ('includes.php'); // some dev utilities not used in production
//define('DEBUG', True); //debugging
//display_post_get(); //debugging
$CompID=$_REQUEST["CompID"];
$Pass=$_REQUEST["Pass"];
$Company=$_REQUEST["Company"];
$CompRecID = $_REQUEST["CompRecID"];
$PickSection = $_REQUEST["PickSection"];
$groupSize='1';
//save the company data first
$request = new FX($ServerIP, $port, 'FMPro7');
$request->SetDBData($db, 'web_comp',$groupSize);
$request->SetDBUserPass($fmAccount, $fmPass);
$request->AddDBParam('-recid', $CompRecID);
if ($PickSection=="SelectAll")
$request->AddDBParam('EDITSTATUS', "08 Web-Update Same");
else
$request->AddDBParam('EDITSTATUS', "08 Web-Update");
$request->AddDBParam('COMPANY', $_REQUEST["Company"]);
$request->AddDBParam('NAME', $_REQUEST["Name"]);
$request->AddDBParam('ADDRESS', $_REQUEST["Address"]);
$request->AddDBParam('CITY', $_REQUEST["City"]);
$request->AddDBParam('STATE', $_REQUEST["State"]);
$request->AddDBParam('StateOther', $_REQUEST["StateOther"]);
$request->AddDBParam('ZIP', $_REQUEST["Zip"]);
$request->AddDBParam('COUNTRY', $_REQUEST["Country"]);
$request->AddDBParam('PHArea', $_REQUEST["PHArea"]);
$request->AddDBParam('PHPrefix', $_REQUEST["PHPrefix"]);
$request->AddDBParam('PHNumber', $_REQUEST["PHNumber"]);
$request->AddDBParam('FXArea', $_REQUEST["FXArea"]);
$request->AddDBParam('FXPrefix', $_REQUEST["FXPrefix"]);
$request->AddDBParam('FXNumber', $_REQUEST["FXNumber"]);
$request->AddDBParam('EMAIL', $_REQUEST["Email"]);
$request->AddDBParam('DESCRIPTION', $_REQUEST["Description"]);
$request->AddDBParam('CompType', $_REQUEST["CompType"]);
$request->AddDBParam('CompType2', $_REQUEST["CompType2"]);
$request->AddDBParam('LEARNMOREBOLD', $_REQUEST["LearnMoreBold"] );
$request->AddDBParam('LEARNMORELOGO', $_REQUEST["LearnMoreLogo"]);
$request->AddDBParam('WEBSITE', $_REQUEST["WebSite"]);
$request->AddDBParam('WebBrowserUsed', $_SERVER['HTTP_USER_AGENT']);
if ($PickSection =="SelectAll")
{
$request->AddDBParam("-script", "Pick All of Last Year's Selections");
//run the FM script
}
$result = $request->FMEdit();
if ($PickSection=="Done"||$PickSection=="SelectAll")
{?>
<link href="caterory.css" rel="stylesheet" type="text/css" />
<p><img src="images/BI_Logo_w_tagline.jpg" alt="BoatingIndustry" width="167"
height="66" /><span class="Title">Thank You</span> </p>
<?php
//exit program normally
exit;
}
else
{
// show categories of section selected
$groupSize='1070';
$request = new FX($ServerIP, $port, 'FMPro7');
$request->SetDBData($db, 'web_comp_cat',$groupSize);
$request->SetDBUserPass($fmAccount, $fmPass);
$request->AddDBParam('CompanyID', $CompID);
$request->AddDBParam('Categories::BGSection', "==".$PickSection);
$request->AddSortParam('Categories::SortOrder');
$result = $request->FMFind();
$records = $result['data'];
?>
<form action="editSelections.php" method='post'>
<p><img src="images/BI_Logo_w_tagline.jpg" alt="BoatingIndustry" width="167"
height="66" /><span class="Title">Selections</span> </p><hr/>
<br/><span class="Title">Buyer's Guide Product Listings for <strong><?php
echo $Company; ?>
</strong><br></span><span class="Title"><strong><?php echo $PickSection;
?></strong>
section</span>
<p> </p>
<input name="CompID" type="hidden" value="<?php echo $CompID; ?>" />
<input name="Pass" type="hidden" value="<?php echo $Pass; ?>" />
<input name="BGSection" type="hidden" value="<?php echo $PickSection; ?>"
/>
<?php
$recordCount = 0;
foreach($records as $record)
{
$recordCount = $recordCount+1;
$RecID=$record['RecordID'][0];
$CatID=$record['CategoryID'][0];
$Category=$record['Categories::Category'][0];
$YrSelected=$record['YrSelected'][0];
echo "<input type=\"hidden\" name=\"recID_".$recordCount."\"
value=\"".$RecID."\" />";
echo "<input type=\"hidden\" name=\"Year_".$recordCount."\" value=\"\" />";
if ($YrSelected >"")
echo "<input name=\"Year_".$recordCount."\" type=\"checkbox\" value=\"08\"
checked=\"checked\" />".$Category."<br>";
else
echo "<input name=\"Year_".$recordCount."\" type=\"checkbox\" value=\"08\"
/>".$Category."<br/>";
}// end for each found record
}// end for each
echo "<input type=\"hidden\" name=\"recordCount\"
value=\"".$recordCount."\" />";
//echo "Records Found: ".$recordCount,"<br>";
?>
<br />
<input name="Submit" type="submit" />
</form>
<?php
if ($PickSection=="Product")
echo "(This may Take a few moments to save)";
?>
</body>
</html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080927/3d94cbf9/attachment-0001.html
More information about the FX.php_List
mailing list