Re: [PHP] Header issues
Mahmoud Badreddine wrote: I have a web-page divided into two frames : margin and main. Inside the margin frame area, I have a pull-down menu that lists all the tables in my database. Upon choosing the appropriate table from the pull-down menu I click a button to display the table. I use the Header( ) function. This works, except that my tables are displayed in the margin area. How can I force it to send to the main area , using the header function. You can't. Not using header() at least. header() happens on the server, targeting a frame happens in the client. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Header issues
Perhaps you can do some juggling to make this work, passing the query to the server, then using a client side language to transmit those results to the appropriate frame. Sounds like a big headache to me though. Martin Austin John Nichel [EMAIL PROTECTED] 04/05/2005 11:17 AM To: php-general@lists.php.net cc: Subject:Re: [PHP] Header issues Mahmoud Badreddine wrote: I have a web-page divided into two frames : margin and main. Inside the margin frame area, I have a pull-down menu that lists all the tables in my database. Upon choosing the appropriate table from the pull-down menu I click a button to display the table. I use the Header( ) function. This works, except that my tables are displayed in the margin area. How can I force it to send to the main area , using the header function. You can't. Not using header() at least. header() happens on the server, targeting a frame happens in the client. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Header issues
[snip] I have a web-page divided into two frames : margin and main. Inside the margin frame area, I have a pull-down menu that lists all the tables in my database. Upon choosing the appropriate table from the pull-down menu I click a button to display the table. I use the Header( ) function. This works, except that my tables are displayed in the margin area. How can I force it to send to the main area , using the header function. Note: I am using pull-down menus, because I tried using collapsible menus and I didn't get anywhere with it. I have a large number of tables and I must hide them. [/snip] You cannot with header(). In the HTML href tage you can specify the target, like a href=thepage.php target=mainFrame -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] header() issues....
Does anyone know if there are issues with using the header() function inside frames? Is there extra stuff that needs to be added to it to get it to work correctly? No... each frame is it's own HTTP request. PHP operates server side so it has no idea of frames. It simply processes the code and redirects the request or sends the appropriate header. Or if there were issues with header in php 4.06? Dunno about that, look at the changelogs, maybe? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php