/    Sign up×
Community /Pin to ProfileBookmark

Problem with link?

Hi,

I made some code that send a link in a mail, but my problem is that the link doesn’t work like I want!

This is how it looks inside the mail: (this isn’t the full link)
……./index.php?p=karta&id=14

And when you click on the link, this is how the link looks in the browser:
……./index.php?p=karta&id=14

and not working correct!

It’s the & sign that isn’t working! Is there some way to come around this?
Preciate some help! Thanks!

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@Peterk92Jan 14.2011 — For starters we need more information:

[LIST=1]
  • [*]Are you sending it as HTML or just PHP Mail

  • [*]Do you create the link e.g <a href=""> or do you just put the url and hope the client turns it into a valid url?

  • [/LIST]
    Copy linkTweet thisAlerts:
    @pkngauthorJan 15.2011 — Hi,

  • 1. I use PHP mail().


  • 2. I write the link inside the string with the other information. And I use [COLOR="Magenta"]. "n" .[/COLOR] to start on a new line. Then I just send it like this:


  • mail($receiver, $subject, $message, $headers);

    Preciate if I have missed something importent that will improve it. I have also a new problem. I would like to place the $message string into a $_SESSION variable, but when I then print the content of the string, there is no line breaks, just a flow of signs!?

    I guess it's the [COLOR="Magenta"]. " n" .[/COLOR] that isn't working. Could it be done in some other way?

    Preciate the help! Thanks!
    ×

    Success!

    Help @pkng spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.18,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...