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
Hmm ok I think I fixed it lol ( my brain farted )
$thisurl = curPageURL();
$thanks = "thanks/";
$thaturl = $thisurl . $thanks;
- United Kingdom
- Community Superstar
- Attended a Community Meetup
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Sold between 5 000 and 10 000 dollars
- Has been a member for 2-3 years
- Microlancer Beta Tester
- Bought between 100 and 499 items
- Referred between 10 and 49 users
Just a quick tip, you should use single quotes.. and heres why: http://stackoverflow.com/questions/482202/is-there-a-performance-benefit-single-quote-vs-double-quote-in-php
my bad thanks aaran
