Here is the frameset: <frameset rows="80,*,30" cols="*" frameborder="NO" border="0" framespacing="0"> <frame src="header.php" name="topFrame" scrolling="NO" noresize > <frameset rows="*" cols="250,*" framespacing="0" frameborder="NO" border="0"> <frame src="browse.php" name="leftFrame" scrolling="AUTO" noresize> <frame src="info.php" name="mainFrame"> </frameset> <frame src="footer.php" name="bottonFrame" scrolling="NO" noresize > </frameset>
and here is the form: <form action="frame.php" method="POST" target="leftFrame"> <select name="category"> <option value="1" label="1">1</option> <option value="2" label="2">2</option> <option value="3" label="3">3</option> <option value="4" label="4">4</option> </select> <input type="submit" /> and here is the relevant lines of browse.php $category=$_POST["category"]; $query="Select username, age, height, eyeColor, haircolor, build, id from users where category='$category'"; thanks, Luis -----Original Message----- From: Pablo Gosse [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 11:38 PM To: Luis Lebron; [EMAIL PROTECTED] Subject: RE: [PHP] Post form variables to a frame On Friday, October 24, 2003 8:28 PM Luis Lebron wrote > I tried that but it did not work. Can you post the html code you used? Setting <form action="foo.php" target="frame"> should do the trick. This is very standard, so if it's not working that's very strange. Post the code so we can take a look. Cheers, Pablo -----Original Message----- From: Evan Nemerson [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 10:14 PM To: Luis Lebron; [EMAIL PROTECTED] Subject: Re: [PHP] Post form variables to a frame On Friday 24 October 2003 06:08 pm, Luis Lebron wrote: > How can I post a form to the left frame of a frameset. I want to have an > user submit a form that opens a frameset. The left frame contains the > results of a query based on the posted parameters. Try setting the target attribute of the form element to the name of the left frame. http://www.w3schools.com/tags/tag_form.asp > > What I want to create is a master detail page. Let's say a person is > looking for a particular car. They would fill out a form. When the form is > submitted a frameset shows up with thumbnails and some information on the > car on the left frame. When the person clicks on the thumbnail, a larger > picture and more information shows up on the right hand frame. > > My only problem is getting the form variables to the left frame. > > thanks, > > Luis -- Evan Nemerson [EMAIL PROTECTED] -- "...the whole idea of revenge and punishment is a childish daydream. Properly speaking, there is no such thing as revenge. Revenge is an act which you want to commit when you are powerless and because you are powerless: as soon as the sense of impotence is removed, the desire evaporates also. " -George Orwell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php