You are asking if you can change the information somewhere else on the page
based on what is entered into a form, using PHP do make the changes. The
answer is still no. PHP ONLY executes on the server, not on the client. The
only way you can update information on the page without re-loading the page
is with Javascript or VB Script. In order for PHP to make any changes on a
page, that page has to be re-processed at the server. Once you are viewing a
page in your browser, there is no longer any PHP code in it, only HTML and
Javascript.
You might be getting confused on what layers are. Layers are used in
Netscape browsers. They are like DIVs in IE. Layers can be stacked on top of
each other but they are all still part of the single web page. IE has an
object called a IFrame that has a fully self contained web page in it and
one IFrame can have a form on it and when the form is submitted the
returning page ( the key here is that the post went back to the server) can
have Javascript in it to change the contents of the other IFrame but you
still need Javascript to do it. Or the 'Submit' button on the form could
simply execute a Javascript routine to change the other layer. You know,
scratch that. Layers are in Netscape-Once a page is drawn in Netscape it is
not possible to change the HTML of an object. You can change attributes like
color, position, etc, but you can not do anything like the IE method of 
innerHTML' which is used to change the information contained in an object.
(insert the appropriate Netscape joke here).

Jim
 
-------Original Message-------
 
From: Stuart Felenstein
Date: Wednesday, June 25, 2003 01:33:15 PM
To: Jim Hunter; [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] OT[slightly] Tables and layers
 
I understand what you are saying.  PHP doesn't create or hide layers etc. 
What I'm trying to understand is will PHP work in that environment or not?
Could I code one layer with a get or post form and have another layer
translating it?
 
Stuart
Thank you for your response.

Jim Hunter <[EMAIL PROTECTED]> wrote: PHP is a Server Side language. What
you need to do is handled with
Javascript or some other scripting language on the Client side. If you use
Javascript you will find that it is easy to manipulate anything on a page,
even remove or add items to a page on the fly. But this is definately not a
PHP type of thing.

Jim Hunter

-------Original Message-------

From: Stuart Felenstein
Date: Wednesday, June 25, 2003 11:14:11 AM
To: PHP List
Subject: [PHP-WIN] OT[slightly] Tables and layers

I'm sure this is possible but not sure where to look to learn. Still really
at the starting stages of PHP but if someone can point me in the right
direction.

Basically I don't want to swap out pages but as a for instance have a php
enabled form in a table that will send [whatever is returned] to another
table or layer somewhere else in the same page. 

Is this possible? I know nothing about HTML and will only take in as much as
necessary and rely on WYSIWYG type of programs like Dreamweaver or GoLive to
do the bulk of the dirty work.

Stuart 

Reply via email to