Jump to content

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 myspaceuser217@hotmail.com

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.