user2399656
user2399656

Reputation: 9

PHP confirmation email not working because of "\" in link

when sending a confirmation email the confirmation code looks like this http://mydomain.com\/confirmreg.php?code=3f76ab3a202e73fb0526cd2091c5b7ce (randomly generated) how do i remove the "\" before the /confirmreg.php

heres some of the code for the link

$confirm_url = $this->GetAbsoluteURLFolder().'confirmreg.php?code='.$confirmcode;

Upvotes: 0

Views: 146

Answers (2)

Jimbali
Jimbali

Reputation: 2538

You could use stripslashes($confirm_url) to get rid of the backslash, but I don't know how GetAbsoluteURLFolder() works so the problem may be in there, or something to do with magic quotes.

Upvotes: 1

7stud
7stud

Reputation: 48609

$domain = rtrim($this->GetAbsoluteURLFolder(), "\\/");
$confirm_url = $domain .'/confirmreg.php?code='.$confirmcode;

Upvotes: 1

Related Questions