I am creating a form that needs to be dynamic. I need to be able to select a Delivery Order number from the list and input Highlights into the text box. I need to be able to select more then one Delivery Order.
So basically I need to select a Delivery Order from the list then write some data... then pick a new Delivery Order and write some data... I need it to be able to save the data until you click submit... Is there a way to do this? I have been looking online for a few days now but cant find anything (I may not be looking for the correct things).
Code:<form name="WDR" action="WDR_add.php" method="post"> <table> <tr> <td colspan="6"> <strong>Select Delivery Order:</strong><br /> <select name="DO"> <option value="#" selected="selected">Select Delivery Order</option> <?php $query = "SELECT DONum, TaskName FROM DeliveryOrders ORDER BY TaskName"; $result = mysql_query($query); while($row= mysql_fetch_array($result)) { $DONum = $row["DONum"]; $TaskName = $row["TaskName"]; $DO = $DONum . " " . $TaskName; print "<option value=\"$DONum\" > $DO </option>"; } ?> </select> </td> </tr> <tr> <td colspan="6"> <strong>Reporting Period Highlights:</strong><br /> <textarea name="Highlights" cols="50" rows="9" id="Highlights"></textarea> </td> </tr> <tr> <td><input name="Submit" type="submit" value="Submit WDR" /> </td> <td colspan="2"> </td> </tr> </table> </form>



Reply With Quote
Bookmarks