addtrain Posted August 8, 2007 Share Posted August 8, 2007 Hi, I am making a little something called a Myspace Add Train (dunno if you've heard of them ). What happens, is that there is an image on the page that says 'Add Me!' and some text below it that says 'Not Added =('. I want to get it so that whenever the person visiting the page clicks on the picture, the text below it changes from 'Not Added =(' to 'ADDED!' HOW CAN I MAKE IT DO THIS!? I have spent months trying to figure this out, but I can't figure it out. PLEASE HELP! Also, there is a DISABLED form. How can I make it so that after the text changed to 'ADDED!', the form is not disabled anymore? PLEASE HELP ME I AM DESPERATE!- Very Frusterated PS I do NOT know PHP ???, but I know how to use it Please Email Me If you have an answer, or reply to the topic. My email is myspaceuser217@hotmail.com OUR WESITE ADDRESS IF YOU NEED TO SEE THE PAGE: http://www.addtrain.1111mb.com/train.php/ Quote Link to comment https://forums.phpfreaks.com/topic/63895-please-help/ Share on other sites More sharing options...
gerkintrigg Posted August 8, 2007 Share Posted August 8, 2007 Look up sessions and cookies. there are loads of great tutorials on php freaks. I really doubt you've been searching for months, but if you have, you're looking for the wrong thing.I'd set a session or cookie to ensure that you recognise a friend when they visit the page and then do something like: if ($_SESSION['added_me']){ code to display one image } else{ code to display other image } like I said it's really not hard, but I think you should check the tutorials before posting back here as most of it's there. Quote Link to comment https://forums.phpfreaks.com/topic/63895-please-help/#findComment-318477 Share on other sites More sharing options...
addtrain Posted August 9, 2007 Author Share Posted August 9, 2007 well, yes, i have been searching for about 2 months now, but whatever. thanks for your help! Quote Link to comment https://forums.phpfreaks.com/topic/63895-please-help/#findComment-319786 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.