Page 1 of 1

need help with coding, very short

Posted: Sat Jan 17, 2004 4:35 am
by malcolmboston
hi guys

im having a problem with a profiling system ive built

basically i have built the master and detail pages but cannot pass the url var from the detail page

for example

i have the profiles listed in much the same way that PHPBB does it, in essence anyway, the proble i am having is when, on the href, i put as the link

Code: Select all

details.com?username=<php echo $_row blah blah blah
it actually echos that code and not its value, i am using the post method but i have used both and neither work,

any explanation would be great

Posted: Sat Jan 17, 2004 4:58 am
by markl999
Just checking details.com?username=<php echo $_row is a typo right? :o

Some examples :

<a href="details.com?username=<?php echo $_row ?>">foo</a>
<a href="details.com?username=<?php echo $_POST['bar'] ?>">foo</a>
etc..etc..

Posted: Sat Jan 17, 2004 5:01 am
by malcolmboston
no it aint a typo

it actually passes that code in the address bar which is what i dont understand

Posted: Sat Jan 17, 2004 5:05 am
by markl999
What is the code that is producing it?

Posted: Sat Jan 17, 2004 5:21 am
by patrikG
As markl999 said - unless you change

details.com?username=<php echo $_row blah blah blah

to

details.com?username=<?php echo $_row blah blah blah

you won't get the contents of $_row displayed there.

Posted: Sat Jan 17, 2004 6:09 am
by devork
^^ yes he is missing '?' start tag sign