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

by
by
by
by
by
by