[FX.php List] Form will not submit with IE browser

John Funk criticalsolution at comcast.net
Sat Sep 27 07:08:13 MDT 2008


I know the tags are outside my form and there are no closing tags but as I
mentioned, I am not writing those html lines, they are the result of the
first query and I do not know how to edit the output.
John

On 9/26/08 1:33 PM, "Dale Bengston" <dbengston at tds.net> wrote:

> 1. All those hidden tags at the beginning are outside your form.
> 
> 2. All those hidden tags have no closing > mark.
> 
> 3. I have had mixed results using single quotes or no quotes around
> html tag attributes.
> <input type ="hidden" value="123" name="CompanyID'">
> 
> Hope this helps,
> Dale
> 
> On Sep 26, 2008, at 10:44 AM, John Funk wrote:
> 
>> I am still having problems with the HTML code in IE on windows. My PHP
>> source is editing a record then showing more data from a query in a
>> form.
>> A few things I noticed:
>> 1. The hidden fields you see at the top of the html, are not echoed
>> from my
>> php code. They must be the result of the FMEdit. And IE is showing
>> them.
>> 2. You can see the tags are not closed. I am guessing this is the big
>> problem IE has with it.
>> 3. You can see my form tag comes AFTER these hidden fields, another
>> problem.
>> 4. MY PHP code is pasted below the HTML.
>> 
>> ****************start of HTML source.
>> 
>> <?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=iso-8859-1" />
>> <title>Edit Company</title>
>> </head>
>> 
>> <body>
>> <input type ='hidden' value='123' name='CompanyID'
>> <input type ='hidden' value='3691' name='CompRecID'
>> <input type ='hidden' value='CS' name='Company'
>> <input type ='hidden' value='John Funk' name='Name'
>> <input type ='hidden' value='b' name='Company3'
>> <input type ='hidden' value='' name='Address'
>> <input type ='hidden' value='' name='PHArea'
>> <input type ='hidden' value='' name='PHPrefix'
>> <input type ='hidden' value='' name='PHNumber'
>> <input type ='hidden' value='' name='City'
>> <input type ='hidden' value='' name='FXArea'
>> <input type ='hidden' value='' name='FXPrefix'
>> <input type ='hidden' value='' name='FXNumber'
>> <input type ='hidden' value='' name='State'
>> <input type ='hidden' value='' name='StateOther'
>> <input type ='hidden' value='' name='Email'
>> <input type ='hidden' value='' name='Zip'
>> <input type ='hidden' value='' name='WebSite'
>> <input type ='hidden' value='' name='Country'
>> <input type ='hidden' value='' name='CompType'
>> <input type ='hidden' value='testtestststststst' name='Description'
>> <input type ='hidden' value='' name='CompType2'
>> <input type ='hidden' value='N' name='LearnMoreBold'
>> <input type ='hidden' value='N' name='LearnMoreLogo'
>> <input type ='hidden' value='123' name='CompID'
>> <input type ='hidden' value='b' name='Pass'
>> <input type ='hidden' value='2190904' name='RecID'
>> <input type ='hidden' value='Marina Product' name='PickSection'
>> <input type ='hidden' value='Submit Query' name='Submit'
>> <input type ='hidden'
>> value 
>> ='193408062.626235810904953700.1219159482.1219159482.1219179690.2'
>> name='__utma'
>> <input type ='hidden'
>> value='193408062.1219159482.1.1.utmcsr=google|utmccn=(organic)|
>> utmcmd=organi
>> c|utmctr=boating industry buyers guide' name='__utmz'
>> 
>> <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>CS
>> </strong><br></span><span class="Title"><strong>Marina Product</
>> strong>
>>    section</span>
>> 
>>  <p></p>
>>  <p>
>>  <input name="CompID" type="hidden" value="123">
>>  <input name="Pass" type="hidden" value="b">
>>  <input name="BGSection" type="hidden" value="Marina Product">
>>  <input type=hidden name=recID_1 value=2190902><input type=hidden
>> name=Year_1 value=''><input name='Year_1' type='checkbox' value='08'
>> checked
>> />Benches, dock<br><input type=hidden name=recID_2
>> value=2190903><input
>> type=hidden name=Year_2 value=''><input name='Year_2' type='checkbox'
>> value='08' checked />Brackets, dock & pier<br><input type=hidden
>> name=recID_3 value=2190904><input type=hidden name=Year_3
>> value=''><input
>> name='Year_3' type='checkbox' value='08' checked />Bumpers, dock &
>> pier<br><input type=hidden name=recID_4 value=2190905><input
>> type=hidden
>> name=Year_4 value=''><input name='Year_4' type='checkbox' value='08'
>> unchecked />Buoys, marker and lighted<br><input type=hidden
>> name=recID_5
>> value=2190906><input type=hidden name=Year_5 value=''><input
>> name='Year_5'
>> type='checkbox' value='08' unchecked />Buoys, mooring & pick
>> up<br><input
>> type=hidden name=recID_6 value=2190907><input type=hidden name=Year_6
>> value=''><input name='Year_6' type='checkbox' value='08' unchecked
>> />Computer software, marina management<br><input type=hidden
>> name=recID_7
>> value=2190908><input type=hidden name=Year_7 value=''><input
>> name='Year_7'
>> type='checkbox' value='08' unchecked />Dock accessories/padding,
>> wheels<br><input type=hidden name=recID_8 value=2190909><input
>> type=hidden
>> name=Year_8 value=''><input name='Year_8' type='checkbox' value='08'
>> unchecked />Dock lines<br><input type=hidden name=recID_9
>> value=2190910><input type=hidden name=Year_9 value=''><input
>> name='Year_9'
>> type='checkbox' value='08' unchecked />Dock pilings<br><input
>> type=hidden
>> name=recID_10 value=2190911><input type=hidden name=Year_10
>> value=''><input
>> name='Year_10' type='checkbox' value='08' unchecked />Docks & piers,
>> floating<br><input type=hidden name=recID_11 value=2190912><input
>> type=hidden name=Year_11 value=''><input name='Year_11'
>> type='checkbox'
>> value='08' unchecked />Docks & piers, permanent<br><input type=hidden
>> name=recID_12 value=2190913><input type=hidden name=Year_12
>> value=''><input
>> name='Year_12' type='checkbox' value='08' unchecked />Docks & piers,
>> portable<br><input type=hidden name=recID_13 value=2190914><input
>> type=hidden name=Year_13 value=''><input name='Year_13'
>> type='checkbox'
>> value='08' unchecked />Dockside equipment, power posts/utility
>> centers<br><input type=hidden name=recID_14 value=2190915><input
>> type=hidden
>> name=Year_14 value=''><input name='Year_14' type='checkbox' value='08'
>> unchecked />Dry stack storage<br><input type=hidden name=recID_15
>> value=2190916><input type=hidden name=Year_15 value=''><input
>> name='Year_15'
>> type='checkbox' value='08' unchecked />Fuel handling & dispensing
>> equipment<br><input type=hidden name=recID_16 value=2190917><input
>> type=hidden name=Year_16 value=''><input name='Year_16'
>> type='checkbox'
>> value='08' unchecked />Gasoline, marine<br><input type=hidden
>> name=recID_17
>> value=2190918><input type=hidden name=Year_17 value=''><input
>> name='Year_17'
>> type='checkbox' value='08' unchecked />Lights, dock & pier<br><input
>> type=hidden name=recID_18 value=2190919><input type=hidden
>> name=Year_18
>> value=''><input name='Year_18' type='checkbox' value='08' unchecked
>> />Mooring arm devices<br><input type=hidden name=recID_19
>> value=2190920><input type=hidden name=Year_19 value=''><input
>> name='Year_19'
>> type='checkbox' value='08' unchecked />Mooring lines<br><input
>> type=hidden
>> name=recID_20 value=2190921><input type=hidden name=Year_20
>> value=''><input
>> name='Year_20' type='checkbox' value='08' unchecked />Mooring
>> poles<br><input type=hidden name=recID_21 value=2190922><input
>> type=hidden
>> name=Year_21 value=''><input name='Year_21' type='checkbox' value='08'
>> unchecked />Mooring systems<br><input type=hidden name=recID_22
>> value=2190923><input type=hidden name=Year_22 value=''><input
>> name='Year_22'
>> type='checkbox' value='08' unchecked />Pedestals, electrical,
>> dockside<br><input type=hidden name=recID_23 value=2190924><input
>> type=hidden name=Year_23 value=''><input name='Year_23'
>> type='checkbox'
>> value='08' unchecked />Pedestals, power<br><input type=hidden
>> name=recID_24
>> value=2190925><input type=hidden name=Year_24 value=''><input
>> name='Year_24'
>> type='checkbox' value='08' unchecked />Pump-out stations<br><input
>> type=hidden name=recID_25 value=2190926><input type=hidden
>> name=Year_25
>> value=''><input name='Year_25' type='checkbox' value='08' unchecked
>> />Rollers, boat launching<br><input type=hidden name=recID_26
>> value=2190927><input type=hidden name=Year_26 value=''><input
>> name='Year_26'
>> type='checkbox' value='08' unchecked />Storage buildings, rack
>> storage<br><input type=hidden name=recordCount  value=26>
>> <br />
>> <input name="Submit" type="submit" />
>> </form>
>> </body>
>> </html>
>> 
>> 
>> ****************start of PHP code.
>> 
>> <?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=iso-8859-1" />
>> <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>
>>  <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
>> />".$Category."<br>";
>> else
>> echo "<input name='Year_".$recordCount."' type='checkbox' value='08'
>> unchecked />".$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>
>> 
>> 
>> 
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
> 
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list




More information about the FX.php_List mailing list