sending values before they are calculated !!

Discussion in 'PHP' started by jacka, May 21, 2008.

  1. #1
    Hi

    I would ideally like to place a button on top of a page, that when clicked, sends some values to the next page but the values are calculated further down the page and have not yet calculated yet.

    Or do I HAVE TO place graphics, that have values associated with them, from top to down as values get assigned to them.

    
    <td  align="center" ><a  href="icart.php?action=add_item&id=<?php echo $row["part_number"]; ?>&qty=1""><img class="pdf" src="../images/orders/addtocartoff2.gif" alt="add item"  id="Image1" onMouseOver="MM_swapImage('Image1','','../images/addtocarton2.gif',1)" onMouseOut="MM_swapImgRestore()"></a></td>
    ...
    ...
    ...
    $result = mysql_query("   SELECT * FROM total_price
    					 WHERE part_number = '$ipn'     ") or die(mysql_error());  
    					$row = mysql_fetch_array($result);
    					//echo "selected from price1";//debug1
    					echo "<br>";
    
    Code (markup):
    Thanks for taking the time to look at the problem.
    :confused::confused:
     
    jacka, May 21, 2008 IP
  2. jacka

    jacka Peon

    Messages:
    165
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Surely, some one must know what I am talking about!!!
    :(
    :confused:
     
    jacka, May 22, 2008 IP
  3. Nathan Malone

    Nathan Malone Well-Known Member

    Messages:
    369
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    110
    #3
    Are you referring to a page-wide form where the submit button is at the top of the page, and the fields are at the bottom?
     
    Nathan Malone, May 22, 2008 IP