Re: [PHP-DB] Processing a web form / loop etc.

2006-05-31 Thread Andri Heryandi
USE ARRAY OF FORM OBJECT ... ... actionfile.php "; } ?> Modify that script. I Hope it will help you. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Processing a web form / loop etc.

2006-05-30 Thread Ron Piggott (PHP)
Hi Stutt Thanks. I hadn't included much of the code for easy reading. I just had to use the $_POST[$val] to get the actual values. Thanks for your help. Ron for ($num = 1; $num <= 3; $num++) { $varname = 'suggested_category_'.$num; $val = $$varname; // Stick your code here

Re: [PHP-DB] Processing a web form / loop etc.

2006-05-30 Thread Stut
Ron Piggott (PHP) wrote: I have a web form that accepts up to 3 suggested categories. In the form they are part of I have named these variables $suggested_category_1 $suggested_category_2 $suggested_category_3 I have come up with this simple code to store the suggestion in a table: if ( $su

[PHP-DB] Processing a web form / loop etc.

2006-05-30 Thread Ron Piggott (PHP)
I have a web form that accepts up to 3 suggested categories. In the form they are part of I have named these variables $suggested_category_1 $suggested_category_2 $suggested_category_3 I have come up with this simple code to store the suggestion in a table: if ( $suggested_category_1 <> "" )