Jump to content

PLEASE HELP!


addtrain

Recommended Posts

Hi,

I am making a little something called a Myspace Add Train (dunno if you've heard of them :P). 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 [email protected]

OUR WESITE ADDRESS IF YOU NEED TO SEE THE PAGE: http://www.addtrain.1111mb.com/train.php/

Link to comment
https://forums.phpfreaks.com/topic/63895-please-help/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/63895-please-help/#findComment-318477
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.