I apologize but I figured out my mistake.
Thanks
-Rich
-Original Message-
From: ReClMaples [mailto:[EMAIL PROTECTED]
Sent: Monday, April 25, 2005 10:05 PM
To: PHP
Subject: [PHP-DB] Help with PHP
I'm not sure if this is the correct distro to be sending this question to,
if it's not, let me know which one I should send it to.
I am having an issue where a variable in on php file won't go to the next
php file:
Here is the code I am using:
get colors
$get_colors = "select Cat_Name from link_categories order by cat_name";
$get_colors_res = mysql_query($get_colors) or die(mysql_error());
if (mysql_num_rows($get_colors_res) > 0) {
$display_block .= "Categories:
";
while ($colors = mysql_fetch_array($get_colors_res)) {
$item_color = $colors['Cat_Name'];
$display_block .= "$item_color";
}
$display_block .= "";
}
This gives me a drop down and when I select the item in the drop down that I
want, it should go into the variable "sel_item_color"
then in my included script I have
$cat_name = $_POST['sel_item_color'];
when i try to echo it, nothing comes up. Can anyone help me figure this
out?
Thanks
-Rich
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php