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
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) {...
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;
}...
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"...
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
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...
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...
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\"...
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...
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...
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...
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...
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...
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...
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 =...
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.
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 "Next" button and see...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.