Recieve option value from a form.

From: Date: Wed, 25 Sep 2002 15:28:21 +0000
Subject: Recieve option value from a form.
Groups: php.windows 
Request: Send a blank email to php-windows+get-16004@lists.php.net to get a copy of this message
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>");

« previous php.windows (#16004) next »