need help with coding, very short

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
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

need help with coding, very short

Post 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
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post 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..
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

no it aint a typo

it actually passes that code in the address bar which is what i dont understand
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

What is the code that is producing it?
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post 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.
User avatar
devork
Forum Contributor
Posts: 213
Joined: Fri Aug 08, 2003 6:44 am
Location: p(h) developer's network

Post by devork »

^^ yes he is missing '?' start tag sign
Post Reply