07-27-2023, 12:24 AM
I am having trouble properly encoding URL data. Using the following code:
$redirect = drupal_urlencode("user/register?destination=/node/1");
drupal_goto( $redirect );
but, the URL that comes up in my browser test is the following:
I thought using the `drupal_urlencode` function should fix this encoding issue. How can I fix it?
$redirect = drupal_urlencode("user/register?destination=/node/1");
drupal_goto( $redirect );
but, the URL that comes up in my browser test is the following:
[To see links please register here]
I thought using the `drupal_urlencode` function should fix this encoding issue. How can I fix it?