Re: Processing a web form / loop etc.

From: Date: Wed, 31 May 2006 00:36:59 +0000
Subject: Re: Processing a web form / loop etc.
Groups: php.db 
Request: Send a blank email to php-db+get-41952@lists.php.net to get a copy of this message
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 replacing references to the $suggested_category_1 var with $val } Incidentally, I do hope that code was simplified for brevity. There should be extensive use of mysql_real_escape_string in there. -Stut

« previous php.db (#41952) next »