Spliting a page into multiple text boxes

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Monotoko
Forum Commoner
Posts: 64
Joined: Fri Oct 26, 2007 4:24 pm

Spliting a page into multiple text boxes

Post by Monotoko »

Hiya :)

I have a PHP page which edits a template page, at the moment it shows a huge box with all the code on the template....is it possible to have this edit page break this up into say: header, search, sidebar etc etc and give the user a differant text box to edit each?

and then hide certain parts of the code from the user (which would just be PHP code) inbetweeen the rightsidebar and the footer...etc

Basically i want the user to only be able to edit the bits which are "echoed" out of the PHP file, in differant text boxes, as oppose to one big mess.
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Post by Jonah Bron »

Sure. Just have a page for each part, and pass the modified parts along via POST, saving each part to a session as you go along.

I think that's what you're asking.
Monotoko
Forum Commoner
Posts: 64
Joined: Fri Oct 26, 2007 4:24 pm

Re: Spliting a page into multiple text boxes

Post by Monotoko »

Is there anyway i could make each text box not show the "include thisfile.php" bit?
Post Reply