post from result on a differnet page whilst reamaining on the form page

Discussion in 'PHP' started by eckul, Nov 10, 2012.

  1. #1
    Hi I'm pretty new to php and am trying to post a form result into the result field without refreshing or losing the other form data. I also want to put this result into another page which will then sort the data from greatest number to smallest. I've succeeded in getting the form to work and the numbers to order but I can't get the result to also input into the appropriate part of index.php. I need to do this with about 18 different results so that they order greatest to smallest. Any help would be really great, below is a link to the form I'm working with and the index page where I'm wanting the results to sit.




    http://eckul.com/footystocks/test1/cms2.php


    http://eckul.com/footystocks/test1/index.php
     
    Solved! View solution.
    eckul, Nov 10, 2012 IP
  2. #2
    2 ways.

    1. do the form submitting with AJAX (javascript).
    2. Adjust the second script to return the to first script if the first script submits to the second script.

    :)
     
    EricBruggema, Nov 11, 2012 IP