Thanks Dormilich for replying.
FLD dosen't exist in the whole both pages.
User Profile
Collapse
-
Calling Javascript Function from file loaded using Ajax
Dear All,
I'm loading php file called details.php into my main webpage called main.php using Ajax.
The loaded php file (details.php) contains a link. When clicking it, it calls a javascript function.
Code:<a onClick="call_function();">
When I click the link, the page shows this error:... -
Thank you Dormilich for replying.
You are correct but the problem is because I have iterated through the radio buttons from 1:
Code:for(j=1; j <= ans_rdo.length; j++)
Code:for(j=0; j < ans_rdo.length; j++)
Leave a comment:
-
Problem when to iterate through Radio Buttons
Dear All,
I'm building an Question/Answer Application in which I generate the Questions and Answers from Oracle database.
I'd like to validate through javascript that the user should answer each question.
First, I iterate through the questions.
Then, inside each question, I check if the user has chosen an answer (If the radio button is checked). If not alert a message.
I get the answer... -
How to get the name of the Excel Sheet?
I'm using this classic ASP code to get the data of the Excel Sheet named Sheet1:
Code:Set conn = Server.CreateObject("ADODB.Connection") conn.Provider = "Microsoft.ACE.OLEDB.12.0" conn.Properties("Extended Properties").Value = "Excel 12.0" conn.Open Server.MapPath("uploads\my_excel.xlsx") sql1 = "SELECT * FROM [Sheet1$]" set rs1 = conn.execute(sql1)
-
-
2100694445,2007 ,3200,100,150
2100694445,2008 ,3600,100,250
2100694445,2009 ,2200,100,50
2100694445,2010 ,4500,100,250
Thanks.Leave a comment:
-
Yes, I have the data in a database. Here is the table structure:
student_id
Year
Price
Discount
Tax
I need to calculate the total price in all years and when the discoutn = 100 we subtrat the tax from the related price.
Thanks alot for helping me.Leave a comment:
-
Also, suppose we have more than three variables for example
discount1, discount2,..... ., discount100 and tax1, tax2,...., tax100
I think it will be hard to maintain the code. I think we should have an array or a for loop, but how can I accomplish that. so any solution?
Thanks.Leave a comment:
-
Oh sorry, Jhardman's code is correct. But your code is not correct. suppose the discount is 50 so we don't have to subtract the tax from the price.Leave a comment:
-
The issue is that: We subtract the (tax) variable from the (price) only when the (discount) equals 100Leave a comment:
-
@Rabbit: Your statement is not what I need. If you can simplify it using arrays or for loop.Leave a comment:
-
@Jhardman: The problem is that the 3 condition can happen at the same timeLeave a comment:
-
How to simplify this long if else statement to for loop or an array
Hi,
I need a simple code for the following code, may be a (for loop) or (an array) or (a simple if else) can accomplish this task, but I don't know how to do that.
$tax1 is related to $discount1.
$tax2 is related to $discount2.
$tax3 is related to $discount3.
Please help me. Thanks in advance.
Code:if ($discount1 == 100 && $discount2 == 100 && $discount3
-
How to simplify this long if else statement?
I have 3 products. All the products have the same price, I named it : price
Each product has a discount. I defined its variables as follows:
discount1, discount2, discount3
But there is a different tax for each product when the discount equals 100% (for example) as follows:
tax1, tax2, tax3
I wrote this code and it works well:
Code:if discount1 = 100 and discount2 = 100 and discount3
-
How to loop through arranged variables m1,m2,m3,m4,...?
Hi,
I have 7 variables named moora1, moora2, moora3,.., moora7 and has its corresponding values. I want to loop through them and print its corresponding values, how can I achieve that.
The following code dosen't work:
Code:moora1 = 10 moora2 = 20 moora3 = 30 moora4 = 40 moora5 = 50 moora6 = 60 moora7 = 70 for i = 1 to 7 response.write moora&i&"<br>"
-
Yes, My PHP HOST is running on Windows Server 2003, IIS 6.0.
OK, after converting it to CSV, how can I read it?
Thanks alot for replying.Leave a comment:
-
How to import the data of an Excel file into Oracle table using PHP
Hi,
I have many Excel files (more than 200 files). I'm using TOAD to import the Excel files into the Oracle table, but this process is boring and time-consuming especially for this huge number of files.
So, I'd like to do a PHP code which takes the path of the Excel file and imports it automatically into the Oracle table without using TOAD or any other programs.
I'm using PHP OCI8 to handle Oracle queries.... -
- I have a page named login.php, it has a form to authenticate user against LDAP, when the login is successful, it directs the user to page named index.php
- Page named index.php has a log out link which goes to login.php, in the login.php I have added session_destroy (); to destroy all sessions. But it dosn't destroy all sessions. I don't know why.Leave a comment:
-
session_destroy(); is not working
Hi,
I'm running PHP on Windows Server 2003, IIS 6.0
session_destroy (); is not working. Anyone know why? and how can I destroy the sessions?
Thanks in advance.
No activity results to display
Show More
Leave a comment: