Check boxes not retaining their correct value

Hello, I have a perplexing issue going on. I have a simple, two checkbox form for updating two values in my login table. The row type is enum('y','n') so naturally a check box is my preferred way to set the value. Even though the value in the table is set to 'y', the check box in the form is never checked. I check it, click the submit button, and the update occurs in the table but the check box remains unchecked on the form. My code for the form is below. Any idea what I'm missing here?
<form method="post" id="form4" action="<?php echo KT_escapeAttribute(KT_getFullUri()); ?>">
            <table cellpadding="4" cellspacing="0">
              <tr><td><input  <?php if (!(strcmp(KT_escapeAttribute($row_rslogin['show_profile']),"y"))) {echo "checked";} ?> type="checkbox" name="show_profile" id="show_profile" value="y" /></td>
                <td><label for="show_profile">Show my profile to other myJoy members.</label></td>
              </tr>
              <tr>
              <td><input  <?php if (!(strcmp(KT_escapeAttribute($row_rslogin['get_mail']),"y"))) {echo "checked";} ?> type="checkbox" name="myjoymail_optout" id="myjoymail_optout" value="y" /></td>
                <td><label for="myjoymail_optout">Send me myJoy email and notifications.</label></td>
              </tr>
              <tr>
                <td></td><td><input type="submit" name="KT_Update3" id="KT_Update3" value="Save Prefs" /></td>
              </tr>
            </table>
          </form>

Hi,
Well I took your code and changed it to:
<?php if (!(strcmp("y","y"))) {echo "checked";} ?>
Getting rid of the KT_escapeAttribute() and manually entered the y. It worked fine. And even with the KT_escapeAttribute() it will probably work fine. Have you doubled checked that the database is not storing a Captial Y or a 0 or 1? Your using varchar correct, not char?

Similar Messages

  • N81 does not retain the correct date...

    My N81 got a very strange problem: it does not retain the correct date....
    Usually it's wrong by two days ago....!
    The S.O. Ver. is: 10.0.32 
    Thanks you and sorry for my english...! :-)

    hi there, have you checked that there is a firmware update for your model? v10 sounds like the original firmware for the N81. i would suggest checking on your PC via Nokia Software Updater for any firmware updates. the latest firmware version for the N81, unbranded or not, is v21.  
    If you found this or someone's comments helpful or like what that person has to say, please give some Kudos to their post!

  • COPA Derivation Rules are not assigning the correct values

    COPA Derivation Rules are not assigning the correct values when we process billing documents in batch.  We currently have derivation rules defined to take the ship to country and refer to custom tables were we identify custom geographic groups (INT/DOM and EAM, AP, etc.).  The derivation rules work accurately when the billing documents are created individually, and more than 75% of them are accurate when generated in batch, but in some circumstances, it populates the derived values with the wrong field and we can not identify where or why that's happening.  It looks like it may have something to do when the ship to customer number account group is different, but that's not consistent..  Does anyone know how or where these values get populated, or have any ideas why incorrect values are appearing sporadically throughout the billing run?  Thanks!!!

    Leigh,
    Apparently the function module is changing the values for some billing docs. Check one of the following user exits, if it gets triggered and the values are changed:
    COPA0001  Enhancement for derivation in Profitability Analysis (CO-PA)
    Function Module: EXIT_SAPLKEDRCOPA_001
    COPA0002  Enhancement for valuation in Profitability Analysis (CO-PA)
    Function Module: EXIT_SAPLKEAB_001
    COPA0003  Enhancement for assignment to profitability segment (CO-PA)
    Function Module: EXIT_SAPLKEAK_001
    COPA0005  Enhancement for actual data update (CO-PA)
    Function Module: EXIT_SAPLKEII_001
    Function Module: EXIT_SAPLKEII_002
    Award suitable points if the above helps. You can also reach me at [email protected]
    Thanks
    Ajay

  • When I click the iCloud button I get a browser with check boxes, not slider buttons and it does not have a "backup and storage" button.  So I cannot set up backup.

    When I open my iCloud browser it looks different than "normal." It shows the list with check boxes, not slider on-off buttons.  It dos not show a "storage and backup" button so I cannot set up my backup. What is wrong?

    If see something like the image below it's because you are looking at the iCloud settings on your Mac, not on an iOS device (which has sliders).  Storage & Backup isn't in the Mac settings because you cannot back up your Mac to iCloud.  Only iOS devices can back up to iCloud.  On a Mac, you can get information about your iCloud account storage by looking at the green usage bar at the bottom and by clicking the "Manage..." button on the bottom right.

  • When converting tables in a MS Word 2010 or 2007 to PDF the table borders do not retain the correct thickness as identified in the word document.  Is there a solution for this issue?

    When converting tables in a MS Word 2010 or 2007 to PDF the table borders do not retain the correct thickness as identified in the word document.  Is there a solution for this issue?

    Please try with latest version of MS Word and Acrobat.
    Regards,
    Anoop

  • Captivate 8, knowledge check radio buttons and check boxes not diplaying correctly in HTML5

    Hello. I am working in Cp 8 on a pc (Win 7, 64-bit) and publishing in HTML5, SCORM 2004, 3rd ed. My issue is with knowledge checks. In preview they look fine, but when published, the radio buttons and check boxes are oversized and do not appear as they should. Additionally, the rollover highlight that covers the distracters is skewed and does not cover all the text in cases of long answer choices. When published as a SWF, there are no issues but project requirements are for HTML5 output only. Help?

    Create an XML Schema (XSD) and define that as the default form schema. The form data will conforms to the order of fields defined in the XML schema.
    Hope that helps.
    Nith

  • Check boxes not checked when value passed through a request

    I've a URL which sets default-check box values -
    f?p=121:41:&SESSION.::YES::P41_OWNER,P41_AI_TYPE:&BUGDB_USER.,\5,6,7\
    where "\5,6,7\" is the value of check-boxes.
    On Page 41, I compute P41_AI_TYPE as follows (as a Process - On Load Before Regions) -
    begin
    if (:P41_AI_TYPE = '5,6,7') then
    *:P41_AI_TYPE := '6:7:5';*
    end if;
    end;
    There are 3 conditional reports that are generated on the page 41 based on these values. i.e. 5,6,7. All the three reports are displayed indicating that the reports do indeed see the P41_AI_TYPE variable.
    The "Debug" shows
    0.03: ...Session State: Saved Item "P41_AI_TYPE" New Value="6:7:5"
    prior to displaying the checkbox
    The "Session" also shows -
    121     41     P41_AI_TYPE     Checkbox     6:7:5     U
    However none of the check-boxes are checked.
    What could be the issue ?
    Edited by: ygore on Aug 26, 2009 10:41 AM

    0.01:
    0.02: S H O W: application="121" page="41" workspace="" request="" session="692841112185158"
    0.02: Language derived from: FLOW_PRIMARY_LANGUAGE, current browser language: en-us
    0.02: alter session set nls_language="AMERICAN"
    0.02: alter session set nls_territory="AMERICA"
    0.02: NLS: CSV charset=WE8MSWIN1252
    0.02: ...NLS: Set Decimal separator="."
    0.02: ...NLS: Set NLS Group separator=","
    0.02: ...NLS: Set date format="DD-MON-RR"
    0.02: ...Setting session time_zone to dbtimezone
    0.02: NLS: Language=en-us
    0.02: Application 121, Authentication: CUSTOM2, Page Template: 5653628457062181
    0.02: ...Session ID 692841112185158 can be used
    0.02: ...Application session: 692841112185158, [email protected]
    0.03: ...Determine if user "YPGORE" workspace "943324391470666" can develop application "121" in workspace "943324391470666"
    0.03: Session: Fetch session header information
    0.03: Saving g_arg_names=P41_OWNER and g_arg_values=YGORE
    0.03: ...Session State: Saved Item "P41_OWNER" New Value="YGORE"
    0.03: Saving g_arg_names=P41_AI_TYPE and g_arg_values=5,6,7
    0.03: ...Session State: Saved Item "P41_AI_TYPE" New Value="5,6,7"
    0.03: ...Metadata: Fetch page attributes for application 121, page 41
    0.03: Fetch session state from database
    0.03: Branch point: BEFORE_HEADER
    0.03: Fetch application meta data
    0.04: Computation point: BEFORE_HEADER
    0.04: Processing point: BEFORE_HEADER
    0.04: Show page template header
    0.04: Computation point: AFTER_HEADER
    0.04: Processing point: AFTER_HEADER
    Root Cause Analysis
    ([email protected]) | Logout
         Reports      
    Edit
         Classify      
    Edit
         Administration      
    Edit
    EditEditEdit
    Summary Report     Area Report     Custom Reports     
    0.05: Region: Action Items Report
    Action Items Report
    0.05: Computation point: BEFORE_BOX_BODY
    0.05: ...Evaluate condition "NEVER" for computation of item: P41_AI_TYPE
    0.05: Processing point: BEFORE_BOX_BODY
    0.05: ...Process "Compute AI Type": PLSQL (BEFORE_BOX_BODY) begin if (:P41_AI_TYPE = '5,6,7') then :P41_AI_TYPE := '6:7:5'; :P41_AI_TYPE_COMMA := '5,6,7'; end if; end;
    *0.05: ...Session State: Saved Item "P41_AI_TYPE" New Value="6:7:5"*
    0.05: ...Session State: Saved Item "P41_AI_TYPE_COMMA" New Value="5,6,7"
    0.05: Region: Enter Bug User Id
    0.06: Item: P41_AREA TEXT
    Area :      Edit
    0.06: Item: P41_OWNER TEXT
         AI Owner :      Edit
    0.06: Item: P41_AI_PERCENT_LOW_MARK TEXT
         AI %age comp. range      Edit
    0.06: Item: P41_AI_PERCENT_HI_MARK TEXT
         And      Edit
    0.06: Item: P41_AI_TYPE CHECKBOX
         AI Type :      
    Test-Generic     TestCase     Development
    Edit
    0.06: Item: P41_AI_ID TEXT_WITH_ENTER_SUBMIT
         AI Id :      Edit
    0.06: Item: P41_GO BUTTON
         Go      
    Edit
    0.06: Item: P41_AI_TYPE_COMMA HIDDEN
              Edit
    0.06: Region: Test-Generic Action Items Report
         Test-Generic Action Items ReportEdit      
    0.06: show report
    0.07: determine column headings
    0.07: activate sort
    0.07: parse query as: RMTOOLS_QAINIT
    0.07: binding: ":P41_AREA"="P41_AREA" value="%"
    0.07: binding: ":P41_OWNER"="P41_OWNER" value="YGORE"
    0.07: binding: ":P41_AI_PERCENT_LOW_MARK"="P41_AI_PERCENT_LOW_MARK" value="0"
    0.07: binding: ":P41_AI_PERCENT_HI_MARK"="P41_AI_PERCENT_HI_MARK" value="100"
    0.07: binding: ":P41_AI_ID"="P41_AI_ID" value="%"
    0.08: print column headings
    0.08: rows loop: 15 row(s)
    No action items in this category.      
    0.08: Region: TestCase Action Items Report
         TestCase Action Items ReportEdit      
    0.08: show report
    0.08: determine column headings
    0.08: activate sort
    0.09: parse query as: RMTOOLS_QAINIT
    0.09: binding: ":P41_AREA"="P41_AREA" value="%"
    0.09: binding: ":P41_OWNER"="P41_OWNER" value="YGORE"
    0.09: binding: ":P41_AI_PERCENT_LOW_MARK"="P41_AI_PERCENT_LOW_MARK" value="0"
    0.09: binding: ":P41_AI_PERCENT_HI_MARK"="P41_AI_PERCENT_HI_MARK" value="100"
    0.09: binding: ":P41_AI_ID"="P41_AI_ID" value="%"
    0.09: print column headings
    0.09: rows loop: 15 row(s)
    No action items in this category.      
    0.09: Region: Development Action Items Report
         Development Action Items ReportEdit      
    0.10: show report
    0.10: determine column headings
    0.10: activate sort
    0.10: parse query as: RMTOOLS_QAINIT
    0.10: binding: ":P41_AREA"="P41_AREA" value="%"
    0.10: binding: ":P41_OWNER"="P41_OWNER" value="YGORE"
    0.10: binding: ":P41_AI_PERCENT_LOW_MARK"="P41_AI_PERCENT_LOW_MARK" value="0"
    0.10: binding: ":P41_AI_PERCENT_HI_MARK"="P41_AI_PERCENT_HI_MARK" value="100"
    0.10: binding: ":P41_AI_ID"="P41_AI_ID" value="%"
    0.11: print column headings
    0.11: rows loop: 15 row(s)
    No action items in this category.      
    0.11: Region: Print Region
         Print Report      
    Edit
    0.11: Computation point: AFTER_BOX_BODY
    0.11: Processing point: AFTER_BOX_BODY
    0.11: Computation point: BEFORE_FOOTER
    0.11: Processing point: BEFORE_FOOTER
    0.11: Show page tempate footer
    Home     Application 121     Edit Page 41     Create     Session     Activity     No Debug     Hide Edit Links     Show Edit Links
    0.11: Computation point: AFTER_FOOTER
    0.11: Processing point: AFTER_FOOTER
    0.11: Log Activity:
    0.11: End Show:

  • Check boxes not responding correctly in form.

    I've created a form in forms central. Then I used XI to edit more fields. I have 7 check boxes grouped together. They are required and have a min. of 1 and max of 7. They are allowed to check as many as they wish. But when they hit the submission of the form it is allowing it to be submitted with those boxes left empty. What else can I do?

    This is probably due to the following user preference: Acrobat > Preferences > Page Display > Rendering > Enhance thin lines
    You should deselect it.

  • Report on Employees whose trips assigned check box not checked

    Hi SAP Guru's,
    We have a requirement wherein we have to generate a report having list of those employee's whose trip assigned check box is not checked in infotype 0017 (Travel Privileges) at the same time who are having trips created in their name. If you have any idea please share it with me.
    Thanks,
    Sudhakar.
    Edited by: sudhakar k on Feb 7, 2011 8:09 PM

    Hi Raynard,
    I did not give this table PA0017 as this table did not have the value trip assigned (field TRVFL).
    Hi Sudhakar,
    Get a list of pernr for whom field TRVFL is blank from that table. Then for the derived pernr check in table PTRV_PERIO or PTRV_HEAD whether any trips are assigned.
    You will get the desired result. You either create a customised report or pick the values from the table in the backend.
    Trust this helps.
    BR,
    Raj

  • J_1IRG23D Table was not updated With Correct Values While Doing MIGO

    Hi Friends,
    I am new to the Excise duty , facing a proble in CIN -While doing MIGO, the Excise Calculation are coming correct values (i.e 10% ),but in the table it was not updated correctly (J_1IRG23D) only one entry is showing wrong ,the other entries in the table are correct.
    In table -J_1IEXCDTL the EXBED it was with correct value 10% of the Base value
    But In table -J_1IRG23D the EXBED,ADE,CESS It was updated with 0.06% on the base value .its gives wrong value
    Kindly help in this issue.
    Regards
    Siva

    Hi,
    Go to T Code - J2I5 (not 215 it is j 2 i 5) enter details and select register PLA Check box and execute. This can be extracted many times - no problem.
    After J2i5 balance will update in registers including tables.
    Ramesh

  • HTMLB Dropdownlist not retaining the selected value

    Hello,
    In my BSP application , in my Dropdownlist when i select an entry it doesnt get retained in the view.
    Please suggest
    I have implemeted DO_HANDLE_DATA AND DO HANDLEEVENT>
    but still it doesnt retain the selected values.
    Please help
    thanks
    swati

    Hi Swathi,
    2things are important here:
    1st : check in debugging where the dropdown event is getting triggered or not...
             if yes then check whether you have taken the variable as a Global
    2nd: your code should be after Dispatch_input()
    hope this will help you out... still you face a problem let me know.
    Cheers,
    bhavana

  • Check box not appearing in SWNADMIN

    Hi ALL,
    I'm trying to made configuration in by executing TCODE SWNADMIN.
    it is opening portal with administration info.
    But i'm not able to find Check box in system while creating sechdules.
    Pls suggest solution or relevant sap note for displaying check box.

    Hello,
    Perhaps you have to do the settings in Development and then transport them to QA.
    Changes aren't usually allowed in a Quality system.
    regards
    Rick Bakker
    Hanabi Technology

  • "Install Windows 7 or later version" check box not showing up in Boot Camp

    I am following a Reddit guide to dual boot Windows 7 on my late-2011 MBP. I've done every step up to installing Windows 7, but there is no check box to "Install Windows 7 or later" in Boot Camp. I've tried several other resources but none mention this. There is a "Remove Windows 7 or later version" check box which has a description stating it can install a Windows partition as well, but when I select it and click to go ahead it only has a selection to remove a Windows partition. I hope I'm just having a brain **** here, because I've been at this for a minute and it's causing hair loss at 21. Haha.
    Ohh, and here's the guide I'm following: http://sampower.ie/windows-7-on-mavericks-via-bootcamp-and-usb/

    your mac seems to think you had installed windows before
    do you have more than 1 partition on your drive, if so, boot camp assistant will not work
    if not, restart your mac and do a pram reset
    open disk utility and repair permissions twice
    open bca and try again

  • Html check box pass more than one value into bean

    Hi all'
    I have group of check box in html , I need to pass more than one value
    into bean an ddisplay in jsp
    what do i do wrong
    private Vector select =new Vector();
      private String mybox =null;
      public download() {
         again(); 
      /* Accessor Methods */
    private void addmybox(String name){
        select.addElement(name);}
    public void setMybox(String name) {
         mybox = name;
    public String[] getMybox() {
         String[] s = new String[select.size()];
         select.copyInto(s);
         return s;
            in my htmli have <%
         String[] mybox= format.getMybox();
         for (int i=0; i<Mybox.length; i++) {
             <%= format.getMybox%>
    %>
    i got error at <%= format.getMybox[i]%>

    Hi ram,
    thank you, I don't have ideal in my mide .
    in my jsp I have
    <td>  <input type=checkbox name=mybox value=<%= link.getNewNum()%>></td>in my servlet I have something like
    String[] checked = request.getParameterValues("mybox");
            try {
            conn = DriverManager.getConnection("jdbc:microsoft:sqlserver://localhost:1433","A#$","RE@89");
            conn.setCatalog("sequences");  
          stmt = conn.createStatement();  
           for(int i=0; i<checked.length; i++){
                   String select=checked;
    String Sql=" select NewNum, Name, Length, Segment, Sequence";
    Sql+=" from Sec04";
    Sql+=" where NewNum='"+select+"'";
    Sql+=" union";
    Sql+=" select NewNum, Name, Length, Segment, Sequence";
    Sql+=" from MySec";
    Sql+=" where NewNum='"+select+"'";
    Sql+=" union";
    Sql+=" select NewNum, Name, Length, Segment, Sequence";
    Sql+=" from Sec03";
    Sql+=" where NewNum='"+select+"'";
    Sql+=" union";
    Sql+=" select NewNum, Name, Length, Segment, Sequence";
    Sql+=" from Sec02";
    Sql+=" where NewNum='"+select+"'";
    Sql+=" union";
    Sql+=" select NewNum, Name, Length, Segment, Sequence";
    Sql+=" from Sec01";
    Sql+=" where NewNum='"+select+"'";
    rs = stmt.executeQuery (Sql);
    while(rs.next()) {              
    String Name = rs.getString("Name");
    String Segment =rs.getString("Segment");
    String Length = rs.getString("Length");
    String Sequence = storeSequenceData(rs.getString("Sequence"));
    String SContent = Name + " ," Segment ", "+ Length + "\n" +Sequence  ;
    now I want
    String SContent = Name + " ," +Segment + ", "+ Length +  "\n" +Sequence  +"\n" + Name+"Segment+","+length+"+"\n" +Name......untill the end
    it sees like I need to look st on shipp car. is that right??
    Thank you !!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • "Make this recurring" check box not visible on Mobile

    I have created and successfully used a Donation button for my 501c(3) business.It works great in browsers on laptop and desktop computers.However, the "Make this recurring" check box is not visible on IPhone, IPod, IPad, Android Pad, or Android phone. How can I enable recurring payments on mobile phones?The URL on these devices starts: https : // mobile . paypal . com / us / cgi-bin / webscr ? cmd=_express-checkout-mobile ... Thanks in advance

    Louisey,
    Welcome to the forums!!
    a few questions first...
    a, did your site work in MobileMe initially before you purchased your domain name?
    b, does it still work if you type in your MobileMe URL rather than the purchased domain name?

Maybe you are looking for

  • Can we use XSLT mapping after graphical Mapping

    Hi, Can we use XSLT mapping after graphical mapping? My requirement is to generate two namespace attributes in the target output. So first I want to generate a structure using graphical mapping and then want to use XSLT mapping only to generate the s

  • Help getting music off of ipod onto computer

    My hard drive crashed and I lost everything on it, including my music, however, I have most of it on my ipod. I got a new computer and loaded up itunes but it doesnt recognize my ipod when I connect it. Is there a way to get the music off of my ipod

  • Jalopy error on JDev 10.1.2

    Hi, I am trying to use the new JDev 10.1.2 with Japoly Plugin (jalopy-jdeveloper-1.1.4.zip). This Japoly plugin version works with the previous JDev prod version (JDev 9.0.5). Here is the error message after I open JDev 10.1.2: C:\opt\oratool\jdev101

  • HPM= Stock Transport Order = How to cancel an Gain or Loss posting

    Hi, In OGSD 4.72  functionality HPM==>"Two-Step Transfers Including Profit and Loss Determination" We manage Goods movments with a stock transport order so when The u2018Delivery Completedu2019 Indicator is Set we have a gain or loss posted . Questio

  • Adjust date/time for multiple images

    Wonder if anyone else is having this problem (some posts seem similar but not exactly the same) 1. Clean library (mix of DNG, JPEG and TIFF files) 2. Need to change dates to match other images in the project 3. Selected multiple images and used Metad