Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. sallieann

    Javascript Form Validation - Needs to Ignore Zero!!

    Thanks you two... I finally got there!! It works like a dream now. Sallie-ann www.able-solutions.com
  2. sallieann

    Javascript Form Validation - Needs to Ignore Zero!!

    ... I see what you mean. Why is it giving me infinity as a value?!! Where's it getting that from? Sallie-ann www.able-solutions.com
  3. sallieann

    Javascript Form Validation - Needs to Ignore Zero!!

    We're making some progress!! It is allowing the order but it's now throwing up the other error message; ConfirmStatus = confirm("*WARNING*\rNot a complete pack quantity, do\nyou wish to continue with this order?"); Sallie-ann www.able-solutions.com
  4. sallieann

    Javascript Form Validation - Needs to Ignore Zero!!

    I changed it to the following and it is still giving me the alert for a quantity value which it should allow <script language="javascript1.2"> <!-- function validate(thisform){ x = "<?=$uom_conv?>" // UOM y = thisform // ORDER QUANTITY z = "<?=$pack_qty?>" // PACK QUANTITY if (y == 0) {...
  5. sallieann

    Javascript Form Validation - Needs to Ignore Zero!!

    the following code is in validations.js which is referenced in the page function isBlank(val){ if(val==null){return true;} for(var i=0;i<val.length;i++) { if ((val.charAt(i)!=' ')&&(val.charAt(i)!="\t")&&(val.charAt(i)!="\n")&&(val.charAt(i)!="\r")){return false;} } return true; }...
  6. sallieann

    Javascript Form Validation - Needs to Ignore Zero!!

    Yes, the html output is as follows; <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <title></title> <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'> <meta name="ROBOTS" content="INDEX,FOLLOW" /> <meta name="resource-type"...
  7. sallieann

    Javascript Form Validation - Needs to Ignore Zero!!

    It give the order alert as specified in the Javascript below. (Even though it is an acceptable order quantity) { alert("*ORDER ALERT*\rOrder Quantity is not a Multiple of Stick/Coil Length\nPlease re-enter order quantity"); Sallie-ann www.able-solutions.com
  8. sallieann

    Javascript Form Validation - Needs to Ignore Zero!!

    Sorry if that didn't make much sense... Say, for example, there are 2 items in the cart & the quantities for both items are currently zero. When the user attempts to change one of the quantities to six (an acceptable quantity), Javascript gives an error message. If this item is the only...
  9. sallieann

    Javascript Form Validation - Needs to Ignore Zero!!

    I am using Javascript to validate the quantity added to a shopping cart written in PHP. The cart sells pipes which come in different pack amounts and different lengths. The quantity is added to the cart as a zero, the user then changes the quantity and this is validated to make sure it is a...
  10. sallieann

    Pass an Array in hidden fields through form post

    Thanks for your help, I am managing to pass the values accross now using sessions. How would I loop through session variables to show an array? <form target=\"_self\" action=\"test.php\" method=POST> $_SESSION['MATGROUP'] = $MATGROUP; <input type=\"hidden\" name=\"MATGROUP\"...
  11. sallieann

    Pass an Array in hidden fields through form post

    Thanks for you help, but what I am trying to work out is as follows; Would my code correctly pass all of the form variables to the second page (because the receiving page doesn't seem to be able to echo them to the screen). If it is only a problem with my second page then this is fine because...
  12. sallieann

    Pass an Array in hidden fields through form post

    Can anybody help – I’ve been going over this problem for days and can’t find a solution! I am trying to pass the values from one page to another in hidden values. All of my values are being echoed properly on the second page except those that are in the array. The values in the array are just...
  13. sallieann

    Populate & update a drop down list box (PHP / MYSQL)

    Thanks for your feedback, I have done as you suggested but the database isn't being updated at all now.
  14. sallieann

    Populate & update a drop down list box (PHP / MYSQL)

    If you don't amend the customer name, it updates the database with a company_id value of '0'. For example, if the customer is company_id '1', the page loads with the following; customer_1 -- this shows the ACTUAL company_id customer_1 customer_2 customer_3 You need to actually select...
  15. sallieann

    Populate & update a drop down list box (PHP / MYSQL)

    I have looked how to do this everywhere but can't find an answer. Can anybody help?! I have two mysql tables - store_customer & store_company. Each customer can belong to only one company, and there can be many companies. They are related via a unique company_id. When a customers details...
  16. sallieann

    Cannot destroy php session variable

    I am trying to destroy a session variable in php from logout.php using the following commands session_unregister("valid_user"); session_unset(); session_destroy(); I have set the session on login.php with the following session_start(); $valid_user = $email...
  17. sallieann

    ODBC Connection Failed - Error Message #1130

    This is the first time I have used an ODBC connection and I'd be grateful for any help. I am trying to connect an Access database on a Windows 2000 machine to a MySQL database on a Linux server. I have downloaded and installed ODBC 3.51 on the Windows machine, and configured it as follows...
  18. sallieann

    Programmatically Manipulating Scroll Bars

    Hi Ben, Many thanks for your help. Since posting my question I managed to find a piece of code that did the trick. Thanks for answering my question though. This is what I found; 'In the Form's General Declaration Section put: Private Const WM_HSCROLL = &H114 Private Const WM_VSCROLL =...
  19. sallieann

    Programmatically Manipulating Scroll Bars

    Can anyone tell me how to manipulate the scroll bar on a form? I want the user to be able to move the subform records (which are in continuous form view) down by clicking a button (almost so it appears like a new screen) rather than scrolling. Any feedback would be really appreciated.
  20. sallieann

    Limiting the number of records in a subform

    I have built an Access form which has a subform (in Continuous Forms view) to display a list of records. I don't want there to be a horizontal scrollbar on the subform and would like to limit the number of records to 15 per page. The user can then click on a &quot;Next&quot; button and see...

Part and Inventory Search

Back
Top