PHP check boxes not sending info to DB? what am i missing

I have a checkbox that needs to stay checked but for some reason it isnt staying check as it is not passing the information to the database.
once the check is check it then directs to a new page
here is what i have so far..
there are three boxes then send to different pages and different columns in the DB but i have just included one as an example
if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form3")) {
  $updateSQL = sprintf("UPDATE plus_signup SET signedElease=%s WHERE userid=%s",
                       GetSQLValueString(isset($_POST['signedElease']) ? "true" : "", "defined","1","0"),
                       GetSQLValueString($_POST['userid'], "text"));
  mysql_select_db($database_hostprop, $hostprop);
  $Result1 = mysql_query($updateSQL, $hostprop) or die(mysql_error());
  $updateGoTo = "e-lease.php";
  if (isset($_SERVER['QUERY_STRING'])) {
    $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
    $updateGoTo .= $_SERVER['QUERY_STRING'];
  header(sprintf("Location: %s", $updateGoTo));
<form action="<?php echo $editFormAction; ?>" method="post" name="form3" id="form3">
      <div align="right"><span id="sprycheckbox1">
        <span class="body-text">E-Lease</span><br />
        <input type="image" src="../images/smalldownload.png" width="35" height="35" alt="download" value="submit"/>
        </a>
        <input type="checkbox" name="SignedLeaseShed" id="leaseshedule"  <?php if (!(strcmp(htmlentities($row_Recordset1['SignedLeaseShed'], ENT_COMPAT, 'utf-8'),"1"))) {echo "checked=\"checked\"";} ?> />
        <br />
      </span></div>
        <input type="hidden" name="MM_update" value="form3" />
        <input type="hidden" name="userid" value="<?php echo $row_Recordset1['userid']; ?>" />    
    </form>
<div id="ErrorZone"><span class="checkboxRequiredMsg">
  <table width="400" border="1" cellspacing="0" cellpadding="0">
    <tr>
      <td><table width="400" border="0" cellspacing="10" cellpadding="0">
        <tr>
          <td>Agreement:<br /></td>
          </tr>
        <tr>
          <td>By you ticking the box above 'Electronically Sign', you are confirming that you agree</td>
          </tr>
        <tr>
          <td><strong>Terms and Conditions</strong></td>
          </tr>
        <tr>
        <tr>
          <td>I have read and understand the statement above</td>
          </tr>
        </table></td>
      </tr>
  </table>
  </span></div>
  <script type="text/javascript">
var sprycheckbox1 = new Spry.Widget.ValidationCheckbox("sprycheckbox1", {additionalError: 'ErrorZone'});
</script>
i was trying it another way but wanted to try this way aswell so i get a full understanding of it.
thanks in advance

What is the name of the form field you are evaluating in your update statement? What the name of the field on your form? Are they the same?

Similar Messages

  • I have a problem with mail.  the spelling and grammer check box before sending the messege is no longer there.  I did everything but cannot get it back.  is ther anyone who knows how to get the box with spelling and grammer checks before sending

    i have a problem with mail.  the spelling and grammer check box before sending the messege is no longer there.  I did everything but cannot get it back.  is ther anyone who knows how to get the box with spelling and grammer checks before sending the mail.
    Also the mail is acting very funny by not getting the rules work in a proper method.  Is ther a software to repair mail.

    i did both of them, but still the while sending the mail the diolog box is not showing up and also the spelling and grammer does not do the spelling check. 
    This problem just started for about 3 to 4 days now.  earlier it was working normally.

  • 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.

  • I would like to be able to edit MP4s in CS5.  I can not open the file. What am I missing?

    I would like to be able to edit MP4s in CS5.  I can not open the file. What am I missing?

    According to the publisher For GoSystem Tax, the 32-bit version of Internet Explorer 8, 9, or 10 is required.  Which means it can't be accessed from an iPad.  This seems weird.  I would recommend you contact the publisher.

  • PHP Check box in Flash

    Hello all,
    I have a flash form that has three checkboxes and some input
    text boxes. My form uses a PHP script that works perfect for the
    text but not the Check boxes. I'm not using the checkbox component,
    I'm using a check box i got from flash kit. Below is the code for
    the checkbox movie and my php code. What do I have to declare in
    the my php file to have the check box work?
    on (press) {
    if (Number(CB_1) == 0) {
    tellTarget ("checkbox1") {
    gotoAndStop(2);
    CB_1 = 1;
    showstate1 = "yes";
    } else {
    tellTarget ("checkbox1") {
    gotoAndStop(1);
    CB_1 = 0;
    showstate1 = "no";
    This is my php code
    <?
    // Enter your contact email address here
    $adminaddress = "[email protected]";
    // Enter the address of your website here include
    http://www.
    $siteaddress ="www.mysite.com";
    // Enter your company name or site name here
    $sitename = "my site";
    No need to change anything below unless you want to add or
    subtract functions or change the wording of things sent back to the
    flash file ...
    // Gets the date and time from your server
    $date = date("m/d/Y H:i:s");
    // Gets the IP Address
    if ($REMOTE_ADDR == "") $ip = "no ip";
    else $ip = getHostByAddr($REMOTE_ADDR);
    //Process the form data!
    // and send the information collected in the Flash form to
    Your nominated email address
    if ($action != ""):
    mail("$adminaddress","New User has Registered",
    "A visitor at $sitename registered!\n
    Personal Info
    Name: $fname
    Last Name: $lname
    Address: $add
    City: $city1
    State: $state
    Zip: $zip
    Telephone: $tele
    E-mail: $email
    Recieve Free Book: $showstate1
    Invitation to Seminar: $showstate2
    Schedule Free Visit: $showstate3
    Comments
    $comment
    Logged Info :
    Using: $HTTP_USER_AGENT
    Hostname: $ip
    IP address: $REMOTE_ADDR
    Date/Time: $date","FROM:$adminaddress");
    //This sends a confirmation to your visitor
    mail("$email","Thank You for visiting $sitename",
    "Hi $fname,\n
    We will process your request and send you a user name and
    password within 48hrs.
    Thank you for your registering at $sitename!\n
    $sitename
    $siteaddress","FROM:$adminaddress");
    //Confirmation is sent back to the Flash form that the
    process is complete
    $sendresult = "Thank you for comments and questions. You will
    receive a confirmation email shortly.";
    $send_answer = "answer=";
    $send_answer .= rawurlencode($sendresult);
    echo "$send_answer";

    1. You have not posting anything to show how Flash is
    communicating wit the
    server PHP script and it a guess that the variable in the
    checkbox is not
    getting sent.
    2. Code with tellTarget is old and will be completely
    obsolete as you want
    to migrate this to newer and newer features in Flash for the
    future.
    Lon Hosford
    www.lonhosford.com
    Flash, Actionscript and Flash Media Server examples:
    http://flashexamples.hosfordusa.com
    May many happy bits flow your way!
    "Asesino" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hello all,
    > I have a flash form that has three checkboxes and some
    input text boxes.
    > My
    > form uses a PHP script that works perfect for the text
    but not the Check
    > boxes.
    > I'm not using the checkbox component, I'm using a check
    box i got from
    > flash
    > kit. Below is the code for the checkbox movie and my php
    code. What do I
    > have
    > to declare in the my php file to have the check box
    work?
    >
    > on (press) {
    > if (Number(CB_1) == 0) {
    > tellTarget ("checkbox1") {
    > gotoAndStop(2);
    > }
    > CB_1 = 1;
    > showstate1 = "yes";
    > } else {
    > tellTarget ("checkbox1") {
    > gotoAndStop(1);
    > }
    > CB_1 = 0;
    > showstate1 = "no";
    > }
    > }
    >
    >
    > This is my php code
    >
    > <?
    >
    > // Enter your contact email address here
    > $adminaddress = "[email protected]";
    >
    > // Enter the address of your website here include
    http://www.
    > $siteaddress ="www.mysite.com";
    >
    > // Enter your company name or site name here
    > $sitename = "my site";
    >
    > /*******************************************************
    >
    > No need to change anything below unless you want to add
    or subtract
    > functions
    > or change the wording of things sent back to the flash
    file ...
    >
    > *******************************************************/
    >
    > // Gets the date and time from your server
    > $date = date("m/d/Y H:i:s");
    >
    > // Gets the IP Address
    > if ($REMOTE_ADDR == "") $ip = "no ip";
    > else $ip = getHostByAddr($REMOTE_ADDR);
    >
    > //Process the form data!
    > // and send the information collected in the Flash form
    to Your nominated
    > email address
    > if ($action != ""):
    > mail("$adminaddress","New User has Registered",
    > "A visitor at $sitename registered!\n
    > ---------------------------------------------
    > Personal Info
    > Name: $fname
    > Last Name: $lname
    > Address: $add
    > City: $city1
    > State: $state
    > Zip: $zip
    > Telephone: $tele
    > E-mail: $email
    > ---------------------------------------------
    > Recieve Free Book: $showstate1
    > Invitation to Seminar: $showstate2
    > Schedule Free Visit: $showstate3
    > ---------------------------------------------
    > Comments
    > $comment
    >
    > ------------------------------
    >
    > Logged Info :
    > ------------------------------
    > Using: $HTTP_USER_AGENT
    > Hostname: $ip
    > IP address: $REMOTE_ADDR
    > Date/Time: $date","FROM:$adminaddress");
    >
    > //This sends a confirmation to your visitor
    > mail("$email","Thank You for visiting $sitename",
    > "Hi $fname,\n
    > We will process your request and send you a user name
    and password within
    > 48hrs.
    > Thank you for your registering at $sitename!\n
    >
    > $sitename
    > $siteaddress","FROM:$adminaddress");
    >
    > //Confirmation is sent back to the Flash form that the
    process is complete
    > $sendresult = "Thank you for comments and questions. You
    will receive a
    > confirmation email shortly.";
    > $send_answer = "answer=";
    > $send_answer .= rawurlencode($sendresult);
    > echo "$send_answer";
    >
    >
    >
    >

  • 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?

  • 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

  • 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

  • "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

  • "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?

  • Cisco Cius AnyConnect check box not getting enabled!

    Folks,
         Here we are evaluating the Cisco Cius, however, while trying to get the AnyConnect "check box" marked, it does not check it! Does anyone knows why? Anything specific done on CUCM? BTW, cucm 8.5.1. Any ideas?
    Thanks,
    Thiago Henriques

    Hi,
    In my DSO I have an InfoObject called Emp No. in the Data Field.
    The Emp.No is being maintained as master with (Emp Name, Address, Telephone No, DOB) as attributes.
    I have loaded the data in the Emp. No master. Then tried loading the transaction data in DSO.
    The Emp.No is there in the DSO active data, but in the query designer its not getting displayed.
    Hope its clear.
    Please help.
    Thanks

  • 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

  • Data grid view adding check box not able to check state

     i have make window search a city name result show on data grid view and i have added the check box when i am checking the check box and other search  of keyword that same row i am un checking the chek box when search it remain check how to making
    it check for al type of keyword

     i have make window search a city name result show on data grid view and i have added the check box when i am checking the check box and other search  of keyword that same row i am un checking the chek box when search it remain check how
    to making it check for al type of keyword
    Hello,
    It's not clear what the issue is, you could be more specific by sharing some screenshots and code.
    In addition, it will be more clear if you could separate the description into multiple sentences.
    Which control did you want to get help about? The checkbox or datagridview?
    If it is checkbox, did you want to keep checked or keep it uncheck?
    If it is datagridview, whether you are talking about checkbox column?
    Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Mail out box not sending but iPad is

    hi
    I am getting a strange problem, the out box of mail is not sending out but my iPad that is connected to the same router is sending out an dI am receving the messages send to myself are coming in mail on my iMac.
    Ta

    If mail is being receieved but will not send then there is a possibility the iMac has a corrupt mail preference. You can first restart in Safe Mode, this will reset some caches. If the problem persists then go to Mail-Prefences-Accounts-Select the account that is having the problem- and then re-enter all preferences. A corrupt preference may appear OK which is why it needs to be re-entered.
    If you don't know how to restart in Safe Mode, hold down the Shift key when you hear the Startup tone until a progress bar appears. After restarting in Safe Mode then restart normally.

  • Auto updated firefox on OS X but missing "open in 32-bit mode" check box in get info. How do I default firefox to open in 32-bit mode?

    Auto updated firefox on OS X but missing "open in 32-bit mode" check box in firefox 'get info'. How do I change firefox to open in 32-bit mode without the checkbox available?

    After long phone call with apple support the thing that seemed to work was:
    make a new user.
    Copying the itunes app from the new user’s Application folder to the shared folder.
    Then open up your old user account and copy it over the old itunes app.
    hope it works for you too

Maybe you are looking for

  • My ipod touch will no longer download new apps after i updated via apple store.How can i get the updates deleted or correct the problem moving forward?

    My ipod touch will no longer download new apps after I updated via apple store.It freezes now when I attempt to download and blanks the app off entirely . How can I reverse the updates or correct the problem moving forward?

  • New Awesome setup, a few questions.

    Hello everyone. Been tinkering away all day on a new lightweight setup using the Awesome WM. I like it a lot, but I have a few simple questions. I've tried searching the forums and the wiki to no avail. Hopefully it isn't because I wasn't looking har

  • Customizing Payment run

    Hi Expert, We want to have acontrol on the payment run; since the system clear the open items with zero-balance due; instead we want to add a logic that it will skip or cancel the clearing process during the payment run. Is there any BTE, user-exits

  • Image in JPanel

    I am trying, as so many others, to print an image to a frame. i am using a panel to do so. I just don't get any images to show up... Thanx for your help!!! here my code... public class MyFrame exends JFrame { private void initComponents() { JPanel we

  • How to handle the Request more information in workflow notification

    Dear All, I am developing a custom workflow which has 3 different options to be handled like approve, reject and request more information. approve and reject scenarios i have done and working as expected. However I would like to know how we can captu