Alidad Posted January 14, 2010 Share Posted January 14, 2010 Hi, this is relate to switch images, let say that i have two php files, and each files has one images called (red-images.png and yellow-images.png). I'm trying to create switch program in php using two buttons of (red and yellow) buttons, and any time i click on that of those two buttons it will change images. I'm using included statments (<?php include(); ?>) to put <?php include('yellow.php'); ?> or <?php include('red.php'); ?>. my question is that how do i can write that php code to allow me to develop switch images buttons between red.php or yellow.php in index.php page using two of those buttons using <?php include(); ?>! please help thanks. AM Link to comment https://forums.phpfreaks.com/topic/188504-switch-images/ Share on other sites More sharing options...
trq Posted January 15, 2010 Share Posted January 15, 2010 An image switcher would be much better off being developed client side using Javascript. Link to comment https://forums.phpfreaks.com/topic/188504-switch-images/#findComment-995298 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.