I've tried that but in that case I would have to chagne may main gallery PHP too much.
Main Topics
Browse All TopicsI have PHP script to make some parts of may page to collapse.
Now I have a problem. My gallery PHP which I want to integrate this collapse runs on HTML templates. What I want to do is to separate this script in 2 parts so that PHP would be in one file and this collapse part would be in HTML template file.
Here is finished collapse script: http://www.blueprints3d.co
Here is template which I want this to be integrated: http://www.blueprints3d.co
So if anybody has idea to integrate this PHP to this html, please reply me… 500 points given…
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Or maybe if someone knows a solution to make it in javascript then that also solves me.
Important is that this collapse thing would be stored in cookies like this:
http://www.blueprints3d.co
Here is another answer you prolly dont wat.....The quick and dirty way to manage stuff at the client is to dump all the stuff down to the client in one monster page (using divs for example) and then show/hide using style attributes on the divs triggered with javascript. The server doesnt need to write the cookies, the page can write its own cookies depending on what the user chooses, and so the server doesn't need to even be involved in all the user interaction. But that is probably more than you want to do....
Is your question really simple? I mean are you just trying to output the <html> tags themselves too many times? Why not drop them from the php script and then you can replace/include/assemble the stuff you want in the template ??
Incidentally why not use the numbers 0000 0001 0010 0100 1000 like the powers of two: 1, 2 , 4, 8 to set/test a position. The nice thing is that then you can quickly tell if say two positions are set, using only one test. So if you want to test that positions 0101 are set (that is called a "mask") then you can do an AND operation to test that.....
Business Accounts
Answer for Membership
by: hernst42Posted on 2004-08-14 at 01:27:12ID: 11799040
the template. should also be an php file.
split up the code in script into twio php-files
into the first PHP-file 'preparedata.php' the lines 1-128
into the second PHP-file 'showdata.php' put the lines 144-368
modify the template-file so the first line contains
<?php require_once 'preparedata.php'; ?>
replace the comment
<!-- Here I want my collapse part to apear -->
whith
<?php include 'showdata.php'; ?>