Problem passing on variables...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
nickvh
Forum Newbie
Posts: 11
Joined: Sat May 31, 2003 3:37 pm
Location: VA, USA
Contact:

Problem passing on variables...

Post by nickvh »

Quick explanation:
I need to pass on "work" to the variable todo, I used;
index.php?todo=work
and it never passes it on. I've always passed on variables this way beofre(ex. http://www.mainframed.com <same theory with that site I built). I don't know where to start looking for the problem, i used a simple echo $todo; after it wasn't working for an if-then statement. I'm using PHPmyDev4 for the server on my computer and PHP is working because I've been doing some MySQL stuff. Thanx for your help everyone.
jamesm87
Forum Newbie
Posts: 21
Joined: Sat May 31, 2003 1:54 pm
Location: London, UK

Post by jamesm87 »

?todo=$work

You forgot the '$'
User avatar
nickvh
Forum Newbie
Posts: 11
Joined: Sat May 31, 2003 3:37 pm
Location: VA, USA
Contact:

Post by nickvh »

sry, lemme rephrase

I want to put the work "work" or "add" or "whatever" in $todo through the URL
User avatar
nickvh
Forum Newbie
Posts: 11
Joined: Sat May 31, 2003 3:37 pm
Location: VA, USA
Contact:

Post by nickvh »

I found the solution in another thread:
viewtopic.php?t=511
Post Reply