Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 1st, 2008, 05:05 AM
Authorized User
Join Date: Nov 2005
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default Page Submission - DropDown List-Error

I have understood the concept of PHP but I am unable to understand the following.

In advanced search I have two dropdown list say 'Manufacture' and 'Product'. First I will select Manufacture (I getting list from database - perfectly) and then I will select 'Product' (I getting list from database - perfectly). After making selection of both, I have written a SQL query to list the images based on both list box selection. This query is available in another .php file. The dropdown list box selected value is kept in a variable and it has been declared as a global variable.

My problem is. After selecting values from two list box the control moves to next .php but the global variable value is not available (means it is not passing the value to any page). That is the reason I am not getting the images output in my centre frame.

What could be the reason for this kind of error?

Please guide me- seems to be very urgent.

Please mail me - venkikrao@yahoo.com

Old August 13th, 2008, 10:46 AM
Authorized User
Join Date: Dec 2005
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts

You could store the values you plan to pass in a $_SESSION, Should solve the problem

Similar Threads
Thread Thread Starter Forum Replies Last Post
Two Level Dynamic DropDown List Error Question workib BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 May 3rd, 2008 02:37 AM
Data Access Page dropdown list blank? kalebson Access 1 October 4th, 2006 07:44 AM
fill dropdown list with items when parent list isaac_cm Pro PHP 1 July 10th, 2006 05:41 AM
Datagrid error with inline dropdown list hardysmith Classic ASP Basics 0 March 11th, 2005 09:36 AM
dropdown list not selecting record on page load whyulil ASP.NET 1.0 and 1.1 Basics 1 September 8th, 2004 08:29 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.