Re: determining all the variables defined on previous pages

From: Date: Thu, 07 Dec 2000 00:07:10 +0000
Subject: Re: determining all the variables defined on previous pages
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-29002@lists.php.net to get a copy of this message
On Thu, 07 Dec 2000, kmurrah wrote: > Greetings. > > When using the following code, how can I determine which values have been > assigned by my form? Is there a way to determine ALL the values defined by > this form and posted to the next page? > > Here's my code: > > while ($row = mysql_fetch_array($result)) { > > $current_quantity = "Q" . trim($row[product_id]); > > echo "<tr><td align=\"center\"><input type=text size=5 > name=\"$current_quantity\">" ; > > ...... > > and when using it, I'm having trouble accessing my values (I've used this > code before but this time I can't get it to work). > > Thanks in advance, > > Kenn The code you show doesn't assign a value to the input field; it seems you are creating the name of the input field from values extracted from a DB, where perhaps you need to assign those as the field value? or something. -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA

« previous php.general (#29002) next »