Htmldb_item.select_list_ referecing submitted results

Hi,
I have the following situation. I have a "dynamic" table of questions with n number of rows. The table consists of 1 col for plain text, and 1 col of multiple select list. I generate this table with the form elements dynamically.
When I go to process and validate I store all the questions numbers in htmld_application.G_F01 and can reference them as: htmld_application.G_F01(i). I store all text results in htmld_application.G_F02 (same referencing). I can link the text answer to the question based on the looping counter 'i'. I store the select results in htmld_application.G_F03. Now for the select if I were only to chose 1 value for each select list I would be fine. It seems if I do a multiple select it stores each selected value in a new "row". As you can see this causes a problem since my list is out of order.
When reading the document for htmldb_select_list_from_query for the p_idx value it says: "Typically the p_idx parameter is constant for a given column."
Any idea on a work around? I'd like all the values in a select list for a given 'i' to be colon delimited. EX: select list A would return blue:red:orange in it's element rather then return it in 3 different positions.
Sorry this sounds a bit confusing. Any help is appreciated.
Thanks,
M

Scott,
Here's my entire situation. I've stripped unnecessary items to focus on the main problem.
Suppose I have a table that contains "dynamic" questions. The main columns are as follows:
question_id
question_name
There is also a table which stores the answers.
question_id
answer_text (for plain text answers)
answer_lovs(list of values if the user selects from a multiple select box)
The user can enter either a plain text answer or select from a multiple select box.
Ok so now we get to the part of displaying the questions. Here's what the code looks like
LOOP over all the questions
.... display quesiton name ...
     htmldb_item.hidden(p_idx => 1, p_value => question_id);
     htmldb_item.text(p_idx => 2, p_value => '');
     htmldb_item.select_list_from_query (p_idx => 3, p_attributes => ' multiple ', p_query => my query);
END LOOP;
Note that all the quesiton_id's are stored in idx = 1, text in idx =2, and answer_lovs in idx = 3. Also note that the select list is a multiple select list.
When the page is submitted the "array" (i.e. the htmldb_application.G_Fxx )should look like this:
question_ids [1,2,3]
answer_text ['a','b','c']
answer_lovs ['g','h','k']
The above example assumes that the user only selects 1 value in the multiple select lists.
If they select multiple values from the select list here's what happpens.
q 1 user selects 'g'
q 2 user selects 'j' and 'u'
q 3 user selects 'i'
the new "array" will look like this:
question_ids [1,2,3]
answer_text ['a','b','c']
answer_lovs ['g','j','u','k']
when I thought that the array would look like:
question_ids [1,2,3]
answer_text ['a','b','c']
answer_lovs ['g','j:u','k']
If you look at the last 2nd to last set of values the "order" is completely out of place. Anyway of doing something so my results turn out like the last set of values?
Please let me know if this makes sense.
Thanks. M.

Similar Messages

  • Having an issue submitting results...

    Hi all,
    we are fairly new to the world of e-learning and need your assistance.
    We have developed out first course complete with 60 questions. Now because we do not have an LMS we needed to work around by utilising the Email funtion and then changing the HTML so that it would send the results through to our PeopleSoft system.
    Now this works fine but our issue now is that if a participant clicks more than once on the Submit button it cancels sending the results through to the server.
    Is there any way to either disable the button once clicked or is there a way to advance to another screen preventing the user from clicking twice and disabling the submit function?
    Any help would be great!
    Thanks
    Mike

    Hi Mike,
    Normally (default settings), after clicking on the Submit button, the user gets feedback (Correct or Incorrect), and in this feedback is also the sentence 'Click anywhere on the slide or use Y to go on' or something like that. Did you change something?
    Lilybiri

  • PDF forms populating Access DB and vice/versa

    I have a PDF from that I published to Acrobat.com There are fields to be filled out. Problems:
    1. How can I set the fields to populate into an existing MS Access DB once submitted results back to me?
    2. How can the form populate upon a certain chouice criteria?
    Scenerio: Form is a log file for patients seen, including name, date, room#, diagnosis codes, testing, medications, f/u. The same fields exist in MS Access but distributed among 3 tables (linked). In the PDF form I have created a New Data Connection (OLEDB), Connection string (Provider for ODBC drivers), In the Data View I see my fields from access - so for each input Binding it points to the field (i.e.: for patient name - $record.Patient.Last_Name).
    But here is the rub:
    1. When the first patient filed is filled, all subsequent patient names are filled with same name (and they keep just replaceing the other inputs).
    2. I cannot seem to create a date calender, or have the current date default (taken from the computer time stamp).
    3. I can not seem to calculate the follow/up (it's 4 weeks) from the input of the date.
    4. When selecting a facility, how do I populate the fields with current patient names and previous Diagnosis (if at all possible).
    5. When I created the data connection, the fill in spaces become obscured and my drop down box for facility choice stops working.
    I know this is big, but any advice and help is greatly appreciated in advance. I have also attached the PDF form for analysis. Please not that there are two, one is the original prior to Life Cycle modification and the other is with the DB linking attempt.
    Thanks
    Shai

    Hi Paul,
    Thanks for the reply and help. I am uploading the MS Access DB (2007). Another caveat, when I chose to use the creat new connection and then chose the build - Microsoft Office 12.0 Access Databse Engine OLE DB Provider, I am not able to link into the database at all. I double checked the location and everything. I do not have any user name or password set-up and chose to leave it blank but get his error:
    Test connection failed because of an error in initializing provider. Could not find file 'C:\User\........'
    Since I am new at this, please feel free to change any structure of the form as needed - as long as the end result will work
    The set-up sounds quite easy and straight forward, but guess its a bit more complicated than I thought. I even have the book: Adobe Acrobat 9.0 in a class room - but no help there either. I am familiar with some Javascripting, so your explanations hopefully will not be over me head.
    Thanks again for your dedication and help
    regards
    Shai
    Message was edited by: Shailevit - I am not able to upload the Access database - file not allowed. it's in the .accdb format. Is there a different format that is accepted to be uploaded ? (PS: Zip doesn't seem to work either) - Thanks

  • Flash Player error message when starting .exe

    I have published a quiz on our local intranet in .exe format.
    It runs fine and actually submits results (unlike the .swf files)
    via Outlook. I created the quiz on a Windows XP machine running
    Captivate 2.
    The only problem I am finding is with certain machines, when
    they go to run the quiz, they get a FlashPlayer error message that
    says : "Cannot create file C:\DOCUME~1\iddem\LOCALS~1\Temp\Personal
    Care final.swf" . On other machines, I don't see the message at
    all.
    If they click OK, it runs the quiz fine. My question is
    whether there is a setting in Captivate I can change to avoid
    having users see this message.
    Thanks for any help you can provide -
    Anne Goldenberger

    I don't know for sure, but believe an .exe is (supposed to
    be) the Flash
    Player and the .swf file essentially 'zipped' up into an
    .exe. So when
    you open the .exe, it auto-extracts to the user's temp folder
    and the
    swf is told to play using the bundled Flash player.
    HOWEVER, recent posts indicate at least some of that is not
    true, or not
    working as it should, in that if a user doesn't have the
    Flash player
    installed, the .exe won't work (swf doesn't play). So perhaps
    the issue,
    assuming my previous assumption is true, is the .exe is
    supposed to make
    the Flash player available but is not, or is directing the
    swf to use
    the installed player instead...which fails if the player is
    not
    installed....
    SO, point being if that's all true, that's why the user's
    temp folder
    may be coming into play - the .exe is trying to extract to
    that
    location. Is the folder path different for each user -
    showing their
    username in the temp folder location?
    Why the error is occurring or how to fix it, I'm not sure.
    Emptying the
    user's temp folder sounds valid. Maybe it's just too 'full'
    and hitting
    some quota limit? Or perhaps the temp folders have some sort
    of
    permissions restriction (which would be silly)?
    At least the file works despite the error...
    Erik
    Anne L Goldenberger wrote:
    > Thanks for your response Larry. What really seems
    strange to me is that the
    > error message comes from Flash - which seems really odd
    since what I published
    > was an .exe file - NOT a .swf file. When the .exe runs,
    maybe it is trying to
    > 'create' a .swf file???
    >
    Erik Lord
    http://www.capemedia.net
    Adobe Community Expert - Authorware
    http://www.adobe.com/communities/experts/
    http://www.awaretips.net -
    samples, tips, products, faqs, and links!
    *Search the A'ware newsgroup archives*
    http://groups.google.com/group/macromedia.authorware

  • Pass Value to Show Function in PLSQL PDK

    I've seen the other threads where people have portlets whose
    show mode is a form and they want to submit and return back to
    the same portal page. The answer is to use
    p_portlet_record.page_url.
    So now I have the page that I want to return to once I process
    the submitted results, but I need the Show function to know that
    it should show the results of the Form submit, not the Form
    again. How can I pass a value into Show so that it knows this?
    For example, lets says my Portlet gets stock quotes. My Show
    function provides a form where you specify the ticker symbol.
    When I submit the form, my CGI goes off and gets the stock
    quote, redirects me to the page identified by
    p_portlet_record.page_url, but then I want my Show function to
    know that now it should show the stock quote in the Portlet
    window, not the Form.
    Put simply, I want to show the results of a Form submit in the
    same portlet window. How can I do this? Thanks.

    The way we did this is by passing the relevant values from the
    form submission through session parameters with the portlet
    reference identifier. The 'show' code should then first check for
    any relevant values for its own reference path and according to
    those values perform a certain action. In our case, from a list
    screen in a portlet we go to an edit screen (form) in the same
    portlet while passing the record_id through session parameters.
    Check the parameter passing portlet in the PDK
    Cheers,
    Patrick

  • Budget Upgrade

    I'm trying to upgrade a 9450 quad system w/ 8 GBs of 800 mhz RAM and a nVidia GT 280 card on which 1trk of HDV and 1 of AVCHD- scaled and CC'd- play but will stall when scrubbing and/or jumping around on the timeline.  Editing for a non-profit, I'm trying to upgrade with limited means.
    I'm working with the CS5 Production Suite and I'm looking at getting a new CPU, either a SandyBridge 3820 or an IvyBridge 3770k and an appropriate Mobo, a x79 or 77 model.  Plus newer RAM (16GBs).  I'm trying to keep this at around $800-900.00 and maybe a bit later upgrade the GT 280 card.  And hoping that a guy who's primary tech experience has been adding HDD's like me can pull this off.
    Any suggestions would help.  Thanks- Eric.

    Eric, if you currently have an adequate power supply and case and an absolute minumum of two or three decent 7200 rpm drives you should be able get by with a significant upgrade in processing power.  It of course will not be the best for upgrading down stream. Do you have a MicroCenter any where near you?  They have some great deals if you can walk into a store.  Or do you have friend or relative near one?
    i7-3820  $230
    GA-X79-UD3 $240
    RAM Memory  $140
    The GA-X79-UD3 does not have an HDV compatible IEEE-1394 Firewire port, so you will have to pick up one.  The X79 boards are fussy on memory but since this is a low-end X79 board it only has four RAM slots and I am guessing you may not be overclocking, it should be cheaper and easier to find compatible memory.  Here is one example of Gigabyte's approved memory for this board from their web site. You should fill all four memory slots for optimum performance
    This is not what I would buy, but with your money constraints it should be about a middle of the road scoring system with our PPBM5 Benchmark.  There is one i7-3820 that has been tested it is rated (today) as 161 out of 921 submitted results. It is slightly overclocked but only has 12 GB of RAM so you can roughly see what you might expect in performance.

  • WinXP emulation

    What do people find best to emulate Windows XP.  I really need to run MSOffice for work.  I have tried Qemu but find the XP with just updates and office installed crashes... a lot.  I need to be able to get documents from Arch to windows using some sort of shared folder and I don't want to use closed source programs so that rules out VirtualBox.  I was thinking maybe going for kvm.  Anyone have any experience with it?  How about other programs?

    i'm trying to get office 2000 working in wine but when i'm installing (just after selecting the packages to install) it exits with a message saying that installation can't finish due to some error, i'm looking forward to qemu with some sort of shared folder, i'm just installed office 2000 in windows 2000 but i'm looking for the shared folder part
    from wine app database http://appdb.winehq.org/search_results. … earch#1090
    Office 97'
    What works
    Word, Excel
    What does not
    Everything except using mouse to select the components to be installed, see bug 5498 for more details.
    What was not tested
    Everything except Word, Excel.
    Office 2000
    What works
    The installer, although install customizations are ignored.
    Opening files
    What does not
    Editing/creating files in Word, Excel, or Powerpoint.
    Word, Excel, and Powerpoint run, but display a dialog asking for user data. Closing this dialog a few times will also close the program, so these programs are not usable.
    What was not tested
    Word, Excel, Powerpoint functions. I was unable to do any editing with them.
    Additional Comments
    When the screen asks for user information, closing it twice will produce a message box saying that "Required registry information is missing and this application cannot run. Please rerun setup to correct the problem." The dialog asking for user information then appears again. If it is closed, the application will also close. The menus appear to work, even when the user information screen is shown, but no editing can be done. The applications are able to open files (using the open button on the toolbar).
    Office XP
    What works
    Installs correctly
    What does not
    Registering product?
    Every time winword starts the installer starts to finalize the installation, shows that it's installed correctly and asks for name and initials.
    What was not tested
    Usability of the programs, testing installer.
    Office 2003
    What works
    Basic functions of Word, PowerPoint, and Publisher.
    What does not
    Did not install clip art functions (chose the Typical Install), so each app crashes when I choose to insert clip art.
    Excel freezes on launch and Access crashes when trying to create a new database.
    What was not tested
    Further functions of Access and Excel. Did not test a complete installation.
    Additional Comments
    These functions were tested with a fresh install of Wine with no further modifications. Office 2003 was installed with a Typical install.
    Office 2007
    What works
    Installer works, just requires overrides, a borrowed rpcrt4.dll, and winver=Vista
    Activation works over internet or phone. (If internet fails, try again. i had to click retry once).
    I've submitted results for the programs individually - see the appdb page for Microsoft Outlook, Word, etc.
    What does not
    Installing out-of-the-box
    What was not tested
    Custom install.
    Additional Comments
    This is the professional version. How I installed (Thanks to Zachary Stewart for the guide) : Started with a fresh wine prefix. 1) Ran winecfg, set windows version to Vista. Clicked 'autodetect' on drives tab to assign a drive (d:\) to my cdrom(/mnt/cdrom). 2) Downloaded winetricks, ran "sh winetricks msxml3 dotnet20 gdiplus riched20 riched30 vcrun2005sp1". Clicked through a great many installers. 3) rename ~/.wine/drive_c/windows/system32/rpcrt4.dll to rpcrt4.bak 4) download a new rpcrt4.dll from here: http://www.mediafire.com/?njtut9aswdk (was linked from another guide). Copy to that system32 folder. 5) winecfg->libraries add an override for rpcrt4.dll (i left it at native,builtin) 6) "cd /mnt/cdrom", "wine setup.exe" 7) Clicked through installer, added product key, etc. Progress bar slows down a bit about 60% done, but just wait a few minutes and it finishes. 8) Remove the downloaded rpcrt4.dll, restore the .bak. Open winecfg and remove the override. Set the windows version down to XP. 9) Start up office. Activation works through phone or internet. ("cd ~/.wine/drive_c/Program\ Files/Microsoft\ Office/Office12", then "wine WINWORD.EXE").

  • Amd up to snuff?

    Hey forum,
    looking to the future, I have a question for you hardcore builders out there.
    When i built my rig, thats in part to many of your valuable experience, I learned that an amd system will not run the adobe universe efficiently as an intel platform, due to amd's instruction sets in their chips.
    well amd has a new architecture and some new instruction sets, with the 9590s and 8350s, i know its not brand new as of writing this, but what do you guys know about them? can amd finally run adobe as well as intel?
    i am looking into the future and man amd stuff is cheaaaaaap, if amd can take full advantage of the adobe universe, i would love a build for cheaper.
    thanks
    esr.

    Edited by Bill after seeing Jim's correct response.  Out of 105 submissions so far only two at the very bottom of the list were AMD
    Well I started looking at our PPBM6/7/8 results and out of 105 submitted results I finally found an AMD FX-6300.  Now this is not the CPU you were asking about, but it ranked 94 out of 105 very near the bottom of the list.  Then another AMD CPU turned up at 96th place it was a slightly newer AMD FX-8150.  Sorry with none of those yet tested it is difficult to say yes or no to buying one.  If you want to see the results above you will have to register on the site.
    Since the FX 9590 is an 8 core unit that may help compensate for any lack of missing code instructions but I could not 100% fine any.  If you decide to gamble and experiment, $300 for an 8 core AMD versus over $1100 for an 8-core Intel does indeed sound like an inviting choice.  Please run the PPBM test for all of us to see.
    i just went back and did a side by side comparison to an i7-4930K and my optimism for that AMD is gone.  The AMD does not do hyperthreading so the six-core (12 threads) Intel will blow this eight-core AMD away any day with Adobe Premiere and most other Adobe products.  Stick with a proven winner.  I would guess that this high end chip might even have problems competing with a quad core Intel chip.

  • Will cancelling my subscription effect live courses?

    Hi all,
    We have a few Captivate courses running online for a client that were created 12 months ago, submitting results to their own FTP server (no acrobat.com etc).  There is no longer a need to create any more courses, and no business requirement to maintain the Captivate Licence - if we stop the month-by-month subscription will our live courses continue to work?
    Kind regards
    Craig

    Hello Craig,
    Yes your Captivate courses will work till the time they have been published from a licensed version (either full or subscription).
    If you don't wish to proceed with Adobe Captivate you can cancel the subscription , it wont affect the running courses.
    Thanks and Regards
    Himanshu Satija

  • Pausing, quitting and resuming in Captivate

    Currently, our course developing tool allows users to quit a
    course and their progress is somehow saved so that when they
    re-open it, the course starts up where they left off.
    I am wondering if anyone knows if this feature is available,
    or even possible, using Captivate?

    Captivate supports resume data if you're using a reporting
    standard that supports it (primarily SCORM).
    I've read that doing so is somewhat problematic in that
    suspend data is apparently being sent on the last slide, which
    means that the user will be taken directly to the last slide if
    they return to a completed lesson and say yes to the "Do you want
    to pick up where you left off?" message.
    For this reason, some folks on the forums advocate turning
    off resume data (in Captivate 2, it's done via the LMS
    Customization Settings button in the Quiz Manager). There's also
    been some discussion in a few threads on how to "fix" this behavior
    by hacking into the Javascript code that submits results
    information. Unfortunately, doing so is beyond the skill level of
    most folks, hence the preference to turn off resume data
    entirely.

  • Error message: "Warning: unresponsive script". Afterward, the system freezes and will then crash. Crash reports have been submitted many, many times without response. I have tried the fore-mentioned solutions with either no results or very bad results

    Error message: "Warning: unresponsive script". Afterward, the system freezes and will then crash. Crash reports have been submitted many, many times without response. I have tried the fore-mentioned solutions with either no results or very bad results which I filed a report but did not receive an answer. The application to block scripts actually worsened the problem and I could not correct the situation for a while (no response from Firefox, at all). I have also been through this procedure without any one contacting me, AT ALL.
    == URL of affected sites ==
    http://http://www.facebook.com (always) and www.YouTube.com (sometimes)

    There does appear to be any support whatsoever from mighty "non caring" FIREFOX & people are getting fed up. We may as well try another system, if they can't be bothered to provide any support for their system, we can't be bothered to use their system.
    Brianeng

  • Form results email when its loads and when it's submitted

    I have a form that sends the results to a database and also e-mails the results to me once the. It works, however, I get two e-mails send to me. The first is when the page is loaded, and the second is when the form is filled and submitted. Obviously I don't want it to send an email with blank results just because the page was accessed. Somewhere in my code I need to correct that it only should email on submit. I'm still learning and it took me a while to get to this point. Could someone look at my code and see what I've done wrong? Thanks. Patty
    <?php require_once('../../../../Connections/BidContractReg.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue= get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
      $insertSQL = sprintf("INSERT INTO Results (`Date`, Company, FirstName, LastName, MailingAddress, City, `State`, Zip, Contact, Title, Phone, Fax, Email, Website, Name, PhoneNumber, Emailcontact) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['date'], "text"),
                           GetSQLValueString($_POST['company'], "text"),
                           GetSQLValueString($_POST['firstname'], "text"),
                           GetSQLValueString($_POST['lastname'], "text"),
                           GetSQLValueString($_POST['mailingaddress'], "text"),
                           GetSQLValueString($_POST['city'], "text"),
                           GetSQLValueString($_POST['state'], "text"),
                           GetSQLValueString($_POST['zip'], "text"),
                           GetSQLValueString($_POST['contact'], "text"),
                           GetSQLValueString($_POST['title'], "text"),
                           GetSQLValueString($_POST['phone'], "text"),
                           GetSQLValueString($_POST['fax'], "text"),
                           GetSQLValueString($_POST['email'], "text"),
                           GetSQLValueString($_POST['website'], "text"),
                           GetSQLValueString($_POST['Name'], "text"),
                           GetSQLValueString($_POST['phonenumber'], "text"),
                           GetSQLValueString($_POST['emailcontact'], "text"));
      mysql_select_db($database_BidContractReg, $BidContractReg);
      $Result1 = mysql_query($insertSQL, $BidContractReg) or die(mysql_error());
      $insertGoTo = "HVAC/confirmation.htm";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $insertGoTo));
    mysql_select_db($database_BidContractReg, $BidContractReg);
    $query_Recordset1 = "SELECT * FROM Results";
    $Recordset1 = mysql_query($query_Recordset1, $BidContractReg) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
      $emailSubject ='HVAC_Bid_Registration';
      $webmaster = '[email protected]';
      $datefield = $_POST['date'];
      $companyfield = $_POST['company'];
      $firstnamefield = $_POST['firstname'];
      $lastnamefield = $_POST['lastname'];
      $mailingaddressfield = $_POST['mailingaddress'];
      $cityfield = $_POST['city'];
      $statefield = $_POST['state'];
      $zipfield = $_POST['zip'];
      $contactfield = $_POST['contact'];
      $phonefield = $_POST['phone'];
      $faxfield = $_POST['fax'];
      $emailfield = $_POST['email'];
      $websitefield = $_POST['website'];
      $Namefield = $_POST['Name'];
      $phonenumberfield = $_POST['phonenumber'];
      $emailcontactfield = $_POST['emailcontact'];
      $body = <<<EOD
    Date: $date
    Company: $company
    Firstname: $firstname
    Lastname: $lastname
    Mailingaddress: $mailingaddress
    City: $city
    State: $state
    Zip: $zip
    Contact: $contact
    Phone: $phone
    Fax: $fax
    Email: $email
    Website: $website
    Namefield: $namefield
    Phonenumber: $phonenumber
    Emailcontact: $emailcontact
    EOD;
    $header = "From: $email\r\n";
    $headers .= "Content-type: text/html\r\n";
    $success =mail ($webmaster, $emailSubject, $body, $header);
    ?>
    <!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>BidRegFormPDH</title>
    <style type="text/css">
    <!--
    body,td,th {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #000;
    line-height: normal;
    border-top-color: #036;
    border-right-color: #036;
    border-bottom-color: #036;
    border-left-color: #036;
    #apDiv1 {
    position:absolute;
    width:939px;
    height:180px;
    z-index:1;
    left: 12%;
    top: 15px;
    text-align: center;
    margin-top: 0px;
    border-top-color: #036;
    border-right-color: #036;
    border-bottom-color: #036;
    border-left-color: #036;
    background-color: #E9E9E9;
    #form1 #apDiv1 p {
    font-size: 36px;
    font-family: "Times New Roman", Times, serif;
    #form1 #apDiv1 p {
    #form1 #apDiv1 #apdiv2 font {
    font-size: 16px;
    color: #633;
    font-family: Arial, "Arial Narrow";
    .font {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    color: #009;
    body {
    margin-left: 12%;
    -->
    </style>
    <script type="text/javascript">
    <!--
    function MM_callJS(jsStr) { //v2.0
      return eval(jsStr)
    //-->
    </script>
    </head>
    <body>
    <form id="form1" name="form1" method="POST" action="<?php echo $editFormAction; ?>">
      <div id="apDiv1">
        <p><img src="../../../../Images/images/CFB-LOGO-V-red-black-with-tag[1].GIF" width="55" height="56" alt="cfb" /><br />   
        Bid Registration Form<font color="#330099" size="2" face="Tahoma"><br />
        <br />
        <span class="font">Please provide your company's contact information below, and click the
        submit button to access the bid contract information.</span></font></p>
    </div>
      <p> </p>
      <p> </p>
      <p> </p>
      <p> </p>
      <p> </p>
      <p><br />
        <img src="../../../../Images/images/Bars/Red Bar.jpg" width="939" height="13" alt="bar" /><br />
      <img src="../../../../Images/images/Bars/Blue Bar_edited-1.jpg" width="939" height="18" alt="bar" /></p>
      <table border="0" cellspacing="1" cellpadding="1">
        <tr>
          <td>Date</td>
          <td><label>
            <input name="date" type="text" id="date" size="30" />
          </label></td>
        </tr>
        <tr>
          <td>Company Name</td>
          <td><label>
            <input name="company" type="text" id="company" size="50" />
          </label></td>
        </tr>
        <tr>
          <td>First Name</td>
          <td><label>
            <input name="firstname" type="text" id="firstname" size="50" />
          </label></td>
        </tr>
        <tr>
          <td>Last Name</td>
          <td><label>
            <input name="lastname" type="text" id="lastname" size="50" />
          </label></td>
        </tr>
        <tr>
          <td>Mailing Address</td>
          <td><label>
            <input name="mailingaddress" type="text" id="mailingaddress" size="50" />
          </label></td>
        </tr>
        <tr>
          <td>City</td>
          <td><label>
            <input name="city" type="text" id="city" size="30" />
          </label></td>
        </tr>
        <tr>
          <td>State</td>
          <td><label>
            <input name="state" type="text" id="state" size="30" />
          </label></td>
        </tr>
        <tr>
          <td>Zip</td>
          <td><label>
            <input name="zip" type="text" id="zip" size="30" />
          </label></td>
        </tr>
        <tr>
          <td> </td>
          <td> </td>
        </tr>
        <tr>
          <td>Contact Name for Bids</td>
          <td><label>
            <input name="contact" type="text" id="contact" size="50" />
          </label></td>
        </tr>
        <tr>
          <td>Title</td>
          <td><label>
            <input name="title" type="text" id="title" size="50" />
          </label></td>
        </tr>
        <tr>
          <td>Phone</td>
          <td><label>
            <input name="phone" type="text" id="phone" size="50" />
          </label></td>
        </tr>
        <tr>
          <td>Fax</td>
          <td><label>
            <input name="fax" type="text" id="fax" size="50" />
          </label></td>
        </tr>
        <tr>
          <td>Email</td>
          <td><label>
            <input name="email" type="text" id="email" size="50" />
          </label></td>
        </tr>
        <tr>
          <td> </td>
          <td> </td>
        </tr>
        <tr>
          <td>Website</td>
          <td><label>
            <input name="website" type="text" id="website" size="50" />
          </label></td>
        </tr>
        <tr>
          <td> </td>
          <td> </td>
        </tr>
        <tr>
          <td>Additional Contact Information:</td>
          <td> </td>
        </tr>
        <tr>
          <td>Name</td>
          <td><label>
            <input name="Name" type="text" id="Name" size="50" />
          </label></td>
        </tr>
        <tr>
          <td>Phone Number</td>
          <td><label>
            <input name="phonenumber" type="text" id="phonenumber" size="50" />
          </label></td>
        </tr>
        <tr>
          <td>Email</td>
          <td><label>
            <input name="emailcontact" type="text" id="emailcontact" size="50" />
          </label></td>
        </tr>
        <tr>
          <td> </td>
          <td> </td>
        </tr>
        <tr>
          <td><label>
            <input name="submit" type="submit" id="submit" value="Submit" />
          </label></td><br />
          <td> </td>
        </tr>
      </table>
      <p><img src="../../../../Images/images/Bars/Blue Bar.jpg" width="939" height="18" alt="bar" /></p>
      <input type="hidden" name="MM_insert" value="form1" onclick="[email protected]" />
      <input type="hidden" name="MM_insert" value="form1" />
    </form>
    </body>
    </html>
    <?php
    mysql_free_result($Recordset1);
    ?>

    There are quite a few things wrong with your page:
    You don't need a recordset, because you never to anything with it.
    The mail script needs to go inside the conditional statement that performs the Insert Record server behavior. This will make the Insert Record server behavior no longer editable through the Dreamweaver dialog box.
    You assign the value of  $_POST['email'] to $emailfield, but later use $email, which has no value.
    You are putting an unfiltered email address into the headers of the mail() function. This exposes you to a malicious exploit called email header injection, which is likely to turn your form into a spam relay, and get you banned from your hosting company.
    You're using two different variables for the email headers: $header and $headers. The variable passed to the mail() function is $header, so the value of $headers is ignored.
    You're setting the content-type to text/html, but there's no HTML in the body of your email. Since the content-type is assigned to $headers, the variable that's never used, it makes no difference anyway.
    This is where you should move the email script to:
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
    $insertSQL = sprintf("INSERT INTO Results (`Date`, Company, FirstName,
    LastName, MailingAddress, City, `State`, Zip, Contact, Title, Phone,
    Fax, Email, Website, Name, PhoneNumber, Emailcontact) VALUES (%s, %s,
    %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['date'], "text"),
                           GetSQLValueString($_POST['company'], "text"),
                           GetSQLValueString($_POST['firstname'], "text"),
                           GetSQLValueString($_POST['lastname'], "text"),
                           GetSQLValueString($_POST['mailingaddress'], "text"),
                           GetSQLValueString($_POST['city'], "text"),
                           GetSQLValueString($_POST['state'], "text"),
                           GetSQLValueString($_POST['zip'], "text"),
                           GetSQLValueString($_POST['contact'], "text"),
                           GetSQLValueString($_POST['title'], "text"),
                           GetSQLValueString($_POST['phone'], "text"),
                           GetSQLValueString($_POST['fax'], "text"),
                           GetSQLValueString($_POST['email'], "text"),
                           GetSQLValueString($_POST['website'], "text"),
                           GetSQLValueString($_POST['Name'], "text"),
                           GetSQLValueString($_POST['phonenumber'], "text"),
                           GetSQLValueString($_POST['emailcontact'], "text"));
      mysql_select_db($database_BidContractReg, $BidContractReg);
      $Result1 = mysql_query($insertSQL, $BidContractReg) or die(mysql_error());
    // Email script goes here
      $insertGoTo = "HVAC/confirmation.htm";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $insertGoTo));
    If you want to use the visitor's email address as the From header, you must filter it first. As long as your server is running PHP 5.2 or above, you can do this:
    if (filter_input(INPUT_POST, 'email', FILTER_VALIDATE_EMAIL)) {
      $email = $_POST['email'];
    } else {
      $email = null;
    $header = "From: $email\r\n";
    If your server doesn't support PHP 5.2 or above, it's time to move. Earlier versions of PHP are no longer supported, and are likely to be insecure.

  • Help submitting my form - Code and results included *Please help*

    So I have a form that gets filled out on my website theres 3
    drag down menu options and about 15 or so fill in the blank boxes.
    And I only obtain 5 of the answers, and the answers I receive
    via e-mail arent even the answers Ive submitted. Ex: if I were to
    put in a phone number I would get an alphabetical answer of "e"
    And here are the results of the sent form which I receive via
    e-mail.
    I'm using Godaddy and Dreamweaver 8
    Answers = Estimated_Credit_Score: e
    Loan_Purpose: b
    Property_Type: d
    mytextbox: never
    send: Submit Questionnaire

    Bmwheel98 ,
    Revisit each textbox by selecting it, then in the properties
    window (design or split view) under the textField (on the left)
    you'll see a textbox with the value of mytextbox in it, change this
    to a unique name for each textbox you have on your form. Just like
    you did for the List/Menus.
    Code View Example:
    use something like this...
    Value of Home</span><span id="textbox"
    style="float:right;"><input name="homeValue" type=text
    id="homeValue">
    not this...
    Value of Home</span><span id="textbox"
    style="float:right;"><input name="mytextbox" type=text
    id="mytextbox">
    Also, if you're using Windows hosting you can do a form
    mailer with CDO on an asp page see here:
    http://www.patio-de-recreo.com/doug/2005_May/cdo_mail_object.asp
    This is what I use with GD and you can manipulate the form to
    html so it's cleaner looking and easier to read. Works like a
    charm. I also read somehwere that GD processes forms and mails them
    once an hour, the CDO solution is pretty much instantly, if time is
    a factor and the previous statement is accurate.
    Hope this helped.

  • Submitting podcast results in "network connection has reset" error

    Hello,
    I've been attempting for the past few days to submit my podcast RSS feed to iTunes. Each time I try, it loads for about a minute before giving me an error message: "We could not complete your iTunes Store request. The network connection was reset." Based on other potential solutions I read, I tried disabling my firewall/antivirus software, using a different RSS feed, and having someone else try to submit it, all with the same result. Are there any other solutions that may help me submit the podcast?

    I was able to subscribe manually to the feed at http://mixcloud-rss.georgipavlov.com/popunmuted/mp3/20 in iTunes and download the latest episodes, so there is no obvious problem. It has been known for a server to fail to respond properly to a request from the Store when it's OK with the iTunes application or a browser, so I can only suggest that this might be the issue and you should query it with the people running your server.

  • HTMLDB_ITEM.SELECT_LIST function returns wrong result in 1.6?

    Look at following select statements:
    1. select flows_010600.htmldb_item.select_list(1,null,'Full;F,Read;R,No;N',
    '','YES',null,'Derived','f01_'||TO_CHAR(ROWNUM,'FM0000'),'D')
    from dual
    &lt;label for="f01_0001" class="hideMe508"&gt;D&lt;/label&gt;&lt;select name="f01" id="f01_0001"&gt;&lt;option value=""&gt;Derived&lt;/option&gt;&lt;option value="F" &gt;Full&lt;/option&gt;&lt;option value="R" &gt;Read&lt;/option&gt;&lt;option value="N" &gt;No&lt;/option&gt;&lt;option value="" selected="selected"&gt;&lt;/option&gt;&lt;/select&gt;
    2.select flows_010500.htmldb_item.select_list(1,null,'Full;F,Read;R,No;N',
    '','YES',null,'Derived','f01_'||TO_CHAR(ROWNUM,'FM0000'),'D')
    from dual
    &lt;label for="f01_0001" class="hideMe508"&gt;D&lt;/label&gt;&lt;select name="f01" id="f01_0001"&gt;&lt;option value=""&gt;Derived&lt;option value="F" &gt;Full&lt;option value="R" &gt;Read&lt;option value="N" &gt;No&lt;/select&gt;
    If selected value of list is null version 1.6 call adds extra item without display value. Version 1.5 call works fine. Is it a bug or implied behavior?

    Hi Alexey,
    This is the intended behavior; in your htmldb_item.select_list call, you are setting the current value to NULL. This is the value shown in 1.6. In 1.5 the first value from your list of values was shown. This behavior wasn't appropriate in most cases. If for example you had a tabular form with a select list and the values retrieved from the database were not part of the list of values used for the select list, it would basically default the select list to the first value from your list of values. If you then saved your tabular form, you would have ended up with the wrong data. Now the select list will show the actual value from the database, if it's not part of the list of values. Otherwise it will show the correct display value. If in your case this is not the behavior you need, you can simply turn that off by modifying your query to:
    select flows_010600.htmldb_item.select_list(1,null,'Full;F,Read;R,No;N',
    '','YES',null,'Derived','f01_'||TO_CHAR(ROWNUM,'FM0000'),'D','NO')
    from dual
    I simply added another attribute which is called p_show_extra and set it to 'NO'. Here's the full specification of the function:
    function select_list (
    p_idx in number,
    p_value in varchar2 default null,
    p_list_values in varchar2 default null,
    p_attributes in varchar2 default null,
    p_show_null in varchar2 default 'NO',
    p_null_value in varchar2 default '%null%',
    p_null_text in varchar2 default '%',
    p_item_id in varchar2 default null,
    p_item_label in varchar2 default null,
    p_show_extra in varchar2 default 'YES'
    ) return varchar2
    Hope this helps,
    Marc

Maybe you are looking for

  • Use require group in virtual host

    Hi, I have set up several virtual hosts in my middle tier, and configured them as partner applications so that OID/SSO can be used for authentication. It works fine, but the only supported method I can see is 'require valid-user' which allows any use

  • Pages 5.2.2 Saving bug

    hello, Pages calls me every 5 minutes with this message: This document was edited in another application. To work on this version, click Back. Changes made here will be saved as version on your Mac. * Tip: If you use an online storage service, do not

  • What is difference between oracle 8i ,9i and 10g

    i want to know what is difference between oracle 8i ,9i and 10g with explain.

  • Is there anything within firefox that would prevent exporting a wordpress xml file?

    everytime i try to export my wordpress blog contents (posts and comments or just post), the file that gets prepared for downloading is either 0 bytes or -1 bytes. is there any type of setting within firefox, that could be causing the problem when exp

  • Trouble installing canon pixma mp500--please help!

    I have OS X 10.4.11 (that's tiger, I think), and I cannot figure out how to connect my Canon Pixma MP500. This printer model is not one the computer automatically knows how to connect to, so I installed the printer driver. I first installed it throug