11-15-2010, 10:45 PM
<img src="gallery/gallery1-1.jpg" alt="Antique Impressions Hardwood Flooring - White Oak" border="0" class="galborders" onMouseOver="alert_msg('Click to view image close up')" onMouseOut="away()"></a><br /></ICODE]
The webpage is http://www.hardwood-floor-products.com/gallery1.php.
11-15-2010, 10:56 PM
What page(s) is that value suppose to carry over to? How does the customer *get* to one of those page(s)?
Generally, it would be simplest to avoid sending the index_value to the PHP code until a customer changes to another PHP page. And then you'd simply include that value along with whatever other info you send in the process of moving to the other PHP page.
11-16-2010, 02:52 PM
Then I need to write some PHP code below the image to the right that would open a text file with the appropriate paragrach content as well as put an image with the solors and sizes right below the paragraphs. In other words...
if ($index_value == "gallery1-1")
elseif ($index_value == "gallery1-2")
11-16-2010, 06:50 PM
11-16-2010, 07:10 PM
Then I need to write some PHP code below the image to the right that would open a text file...
HOW???? You can't just have PHP suddenly re-appear in the middle of an ALREADY-OPEN-IN-THE-BROWSER page!
Well, you can, but not by simply invoking another PHP page.
You would need to
(a) use an <iframe>, and then use PHP to pull content into that <iframe>.
The alternative is to simply bring in a brand new COMPLETE page from PHP, but I'd assume you don't want to do that.
So which will you do, (a) or (b)???
11-16-2010, 07:11 PM
I should have refreshed the page sooner. Yes, I agree with Dormilich. There's really no reason to involve PHP for something this simple. But if you must do so, then *probably* you want an AJAX answer.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.