Removespaces seems to be working fine, it does take the spaces out.
**************
function Removespaces(instring)
{
x=instring.value
prev =0
returnstring = ""
for (i=0; i< x.length; i++)
{
if (x.charAt(i) != " " )
{
returnstring += x.substring(++prev,i)
}
else
{...
do you see anything wrong with the following statement
document.forms['priceupdater'].elements['retailprice' + i].value = Removespaces(document.forms['priceupdater'].elements['retailprice' + i]);
when I add this statment on top wierd things start to happen like, alert will get into infinite...
thanks a lot for your replies. if my if statement turnout to be true I want to come out from the javascript function if not then I submit the form. I am doing the following it seems to be working , but is this the right way?
************************
for (i=1; i <= numberofprod; i++)
{...
Hi,
On my form I have suppose 10 text boxes with names
retailprice1
retailprice2
.
.
.
retailprice10
In my javascript function I want to dynamically get the values of those text boxes. I am trying to do something like following but I know it is not right. i will appreciate your help
for...
Hi,
I have type float for retail price. Follwing sql seems correct
$sqlstring= "update products set brand = '$brand' , brand_id = '$brand_id' , model = '$model' , description = '$description' , retail_price = $retail_price where product_id ='$prod_id'";
But I noticed even if...
just one question if the sql file is small then you can if you want open in note pad and actually see, but if it really big suppose 1 million records, the is there any way if you want you can open it?
thanks for everybody's input, you are right I think one should just use $_POST and $_GET straight with out assigning their values to variables first...
when you say
"I see in many code examples that are posted here that people assign local singleton variables from the superglobal arrays $_POST or $_GET. IMO that makes the code convoluted and also uses extra memory."
You mean doing something like this
$name= $_POST['name'];
is not...
thanks for your reply, the compnay were I am hosting seems quite experienced, i don't know why they would do something like that. I will still use the _GET , or _POST, who knows they may change their setting in future and my code will quit wotrking.
Hi,
I noticed when you submit a form or go to a page through link<a>, variables in the link or in the form go to the other page and you can access them with out having to first do $_GET , or $_POST, So why do we first do either _GET , or _POST
Thanks
thanks, so I guess you can not make a back up of whole database in one shot, you have to go table by table.
So I guess suppose I wipe out my whole database. first I will create a database manually, then run the files for each table to put tables back, right?
thanks
I don't how to take care of this problem.
I post form with variables form Page A to B , then I go from page B to C. But then using browser back button when I go back to page B, page B expires.
I don't know how people take care of this problem..
Thanks
I don't how to take care of this problem.
I post form with variables form Page A to B , then I go from page B to C. But then using browser back button when I go back to page B, page B expires.
I don't know how people take care of this problem..
Thanks
Hi,
I have my website on a hosting compnay server. They are using phpmyadmin for MYSQL. I need to make a back of my database. I was told to use the option export, but I really don't understand it. When I click on "Export" many options
I leave the default setting enter the file name and click...
Hi,
When I pick the option "allowed null" while creating a table field, and If that field does not have a value i see NULL written in that field when i browse the table using phpadmin,
But when I update the table doing followig
update accessories set field_A = null
I don't see "NULL"...
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.