Below is the code to create a form. (This for works fine) How do I recieve <OPTION VALUE='$Last_Orders_id'> on 'SalesCreate.php' . Many thanks, Arthur.
print ("<tr><td><FORM ACTION='SalesCreate.php' METHOD=POST>"); print ("<P><b>Select Sales info:</b><BR>"); print ("<SELECT NAME=Sales>"); while ($RowSales = mysql_fetch_array ($ResultSales)) { $Last_Orders_id = (string) $RowSales[sales_log_orders_id]; $Date_created = (string) $RowSales[sales_log_date]; print ("<OPTION VALUE='$Last_Orders_id'>Last order = $Last_Orders_id, created on $Date_created</OPTION>"); } print ("</SELECT>"); print ("<P><INPUT TYPE=SUBMIT NAME=SUBMIT VALUE='Create Sales'></FORM></td>"); -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php