User Profile

Collapse

Profile Sidebar

Collapse
malika
malika
Last Activity: Jun 7 '13, 06:55 AM
Joined: Apr 28 '13
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • how to define the index of array in foreach loop for add/dividing elements of array

    hi everyone i fetch the array by using foreach loop now how can i define the index of different elements in array for futher computation like i want the element1 of array 1 to be divided by element1 of array 2 code of for each loop
    Code:
     <?php
    
    if (isset($_POST['submit'])) {
    
        $data_t1 = $_POST['t1'];
    
        foreach ($data_t1 as $key => $value) {
    
            echo 'T1: ' . $value
    ...
    See more | Go to post

  • malika
    started a topic how to fetch the values from foreach loop
    in PHP

    how to fetch the values from foreach loop

    hi my problem is that how can i fetch the values from for each loop for further computation

    Code:
    <?php
    
    if (isset($_POST['submit'])) {
    
        $data_t1 = $_POST['t1'];
    	
        foreach ($data_t1 as $key => $value) {
    
            echo 'T1: ' . $value . '<br />';
            echo 'T2: ' . $_POST['t2'][$key] . '<br />';
    		  echo 'T3: ' . $_POST['a1'][$key] . '<br
    ...
    See more | Go to post

  • how to pass value of different rows from a loop to next page in php

    hi everyone my problem is this that i dynamically creted rows of table on the basis user input. Now each row contain textbox,comboxb ox on selcting value from combobox n entering value in textbox from first three column ,result will display.on passing these selected n entered value on next page only the last row values moves to next page .i want to pass all loop values to next page
    Code:
    javascripting code
    <script>
     function
    ...
    See more | Go to post
    Last edited by Rabbit; May 25 '13, 05:07 PM. Reason: Added closing code tag.

  • malika
    replied to how to perform computation in the table
    can u plz code how can i do ths as i am new in php n javascripting not much know of it
    See more | Go to post

    Leave a comment:


  • malika
    started a topic how to perform computation in the table

    how to perform computation in the table

    hi everyone my question is that i get the number of tables which according to the user input in the texbox but when i perform computation in first table mean addittion of first three column give me result in fourth column but in second table i dont get the result.i have used the javascripting plz help me if anyone knoes the answer

    javascripting
    Code:
     function getText3(){
          var in1=document.getElementById('in1').value;
    ...
    See more | Go to post
    Last edited by acoder; May 27 '13, 12:20 PM. Reason: Separated code

  • how could i apply loop on the table ? can u help in this regard as i am new in ths php plz help me where i put the loop
    See more | Go to post

    Leave a comment:


  • dynamically created tables on the basis of user inputs in the textbox

    How to create dynamically tables on the basis of user inputs in the textbox for example if user write 3 in the textbox three table should be display n so on
    code of table is
    this is my table code
    Code:
    <table border="1" align="center">
    <tr><th>A</th><th>W</th><th>NO</th><th>AV</th><th>AP</th><th>AP Phase</th><th>
    ...
    See more | Go to post
    Last edited by Rabbit; May 24 '13, 03:39 PM. Reason: Please use code tags when posting code.
No activity results to display
Show More
Working...