Re: Processing a web form / loop etc.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux