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