Jump to content

Display Link Content Need Help


szkgroove

Recommended Posts

Hello, need help with this code,

I want to display content of this link on single page

This is back link, so I want user to have this content on the bottom of page, so it does not need to click to get where previously was.

I appreciate any help

Thanks

 

</a>

<strong>»</strong> </font><a href="catbrowser.php?qcatid=<?=$value['gcategoryid']?>" class="backToLink">

<?=$value['catname']?>

</a>

Link to comment
Share on other sites

This is just funny, but sad at the same time.

 

How are we expected to help not knowing your application and it is to be used. You need to post relevant sections of the code and we can help.

 

Alternatively, you can just use javascript for a back button.

Link to comment
Share on other sites

I can see the problem with your code as it is written. The correct code would be:

 

<a href="catbrowser.php?qcatid=<?php echo $value['gcategoryid']; ?>" class="backToLink">
<?php echo $value['catname']; ?>
</a>

 

That said, without knowing the context of the variables and such I have no idea if it will do what you want it to do.

Link to comment
Share on other sites

I can see the problem with your code as it is written. The correct code would be:

 

Not really, sure, that is a "better" method as it does not rely on PHP Version 5.4> and or short_open tags to be on in < 5.4, but as long as he has the open tags enabled or is running 5.4, that code he posted is just fine.

Link to comment
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.