Jump to content

switch images...


Alidad

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.