Jump to content


Photo

Post value in the same documment backwards


  • Please log in to reply
1 reply to this topic

#1 dragance

dragance
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 04 May 2006 - 12:55 PM

I have php code like this:

[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]
<a href="http://www.domain.com/<?php echo $value; ?>">LINK</a>
[/quote]

and afterwards in this document I calculate this $value and gets $value=something;
So I want to send this $value back to the link in the same document.
I can't calculate $value before the link.
Is it possible to do it?
Kind regards.






#2 ober

ober
  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 04 May 2006 - 12:58 PM

You have control over that entire document before it gets to the client. I suggest you move your calculations within the document so that the value is calculated before you echo the link.

Info: PHP Manual





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users