Page 1 of 1

Problem passing on variables...

Posted: Sat May 31, 2003 3:37 pm
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.

Posted: Sat May 31, 2003 3:51 pm
by jamesm87
?todo=$work

You forgot the '$'

Posted: Sat May 31, 2003 4:23 pm
by nickvh
sry, lemme rephrase

I want to put the work "work" or "add" or "whatever" in $todo through the URL

Posted: Sat May 31, 2003 7:14 pm
by nickvh
I found the solution in another thread:
viewtopic.php?t=511