5492 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Located in Australia
  • Has sold $1,000+ on Envato Market
+4 more
Australia says

I am using php to grab and echo curPageURL

<?php echo curPageURL(); ?>

that gives me something like: http://mywebsite.com/folder/

Which is great, but I also want to add another href , to redirect to:

http://mywebsite.com/folder/thankyou/

But I would like to append /thankyou/ to curPageURL

so like: curPageURL/thankyou/

does that make sense ?

It is for use on fb feed api, and wish to add a redirect_uri using my code ( I have everything working ) just not the /thankyou/ bit …

Was just wondering if I can append a directory onto the end of the CurPageURL

( I don’t really want to use explicit url )

Ste

5492 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Located in Australia
  • Has sold $1,000+ on Envato Market
+4 more
Australia says

Hmm ok I think I fixed it lol ( my brain farted )

$thisurl = curPageURL(); $thanks = "thanks/"; $thaturl = $thisurl . $thanks;
973 posts
  • Has referred 10+ members
  • Has sold $5,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 100+ items on Envato Market
+5 more
aaranmcguire says
5492 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Located in Australia
  • Has sold $1,000+ on Envato Market
+4 more
Australia says

my bad thanks aaran

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by