I am using a from
<form  id="inv_lineadd<?=$rno?>" name="inv_lineadd" class="panel"
action="invoice.php" method="POST">
<input type="text" id="invid" name="invid" value="<?=$this->invoiceid?
>">
<input type="hidden" id="stat" name="stat" value="invitem">
<fieldset>
<div class="row">
    <label>Quantity</label>
    <input name="qun" id="qun" type="text">
</div>
<div class="row">
    <label>Rate</label>
    <input name="rate" id="rate" type="text">
</div>
<div class="row">
    <label for="exp_desc">Description</label>
    <input name="expDesc" id="exp_desc" type="text">
</div
</fieldset>
<a class="whiteButton" type="submit">Add Item</a>
</form>

The scenario is like
 The main page consist of invoice items . By clicking one invoice will
take you to the detail page where we can enter the rate and quantity
(above form). I am using the hidden variable to store the invoice main
id. It works well wile adding invoice item for the first selected
one . If i goes back select another invoice and enter the items under
it . The hidden variable stores the previous Id. I tried echoing the
id . There it shows the selected on but the form field replicates the
first selected one ..


-- 
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=en.

Reply via email to